diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-07-29 14:06:42 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-07-29 14:06:42 +0000 |
commit | f2e0ed122aedb756cdba5c765541a60b7301fbfd (patch) | |
tree | a7430b8c577bcc6a743575abefb4665ab1351eaf /openwrt/package/bluez-utils/files | |
parent | 81610c18414c5f09b7ad0a9a195d67747f3249b0 (diff) |
add missing givepin file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1574 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/bluez-utils/files')
-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 000000000..e52a3384a --- /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 |