diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-07-29 14:06:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-07-29 14:06:42 +0000 |
commit | e405ecc5c4fdfc858ba84d778ac19913cca390e4 (patch) | |
tree | a7430b8c577bcc6a743575abefb4665ab1351eaf /openwrt/package | |
parent | 80fa31a204a1ef9b0ca64c09e36676822e4ccbb0 (diff) | |
download | mtk-20170518-e405ecc5c4fdfc858ba84d778ac19913cca390e4.zip mtk-20170518-e405ecc5c4fdfc858ba84d778ac19913cca390e4.tar.gz mtk-20170518-e405ecc5c4fdfc858ba84d778ac19913cca390e4.tar.bz2 |
add missing givepin file
SVN-Revision: 1574
Diffstat (limited to 'openwrt/package')
-rw-r--r-- | openwrt/package/bluez-utils/files/givepin | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openwrt/package/bluez-utils/files/givepin b/openwrt/package/bluez-utils/files/givepin new file mode 100644 index 0000000..e52a338 --- /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 |