From e405ecc5c4fdfc858ba84d778ac19913cca390e4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Jul 2005 14:06:42 +0000 Subject: [PATCH] add missing givepin file SVN-Revision: 1574 --- openwrt/package/bluez-utils/files/givepin | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 openwrt/package/bluez-utils/files/givepin diff --git a/openwrt/package/bluez-utils/files/givepin b/openwrt/package/bluez-utils/files/givepin new file mode 100644 index 00000000000..e52a3384af9 --- /dev/null +++ b/openwrt/package/bluez-utils/files/givepin @@ -0,0 +1,14 @@ +#!/bin/sh + +# Write bluetooth PIN number here: +pin= + +if [ -z "$pin" ]; then + msg="Set bluetooth PIN in file $0" + logger -p user.err "$msg" + for i in /dev/pts/* ; do + [ -w $i ] && echo "$msg" > $i + done +else + echo "PIN:$pin" +fi -- 2.30.2