summaryrefslogtreecommitdiffstats
path: root/openwrt/package/bluez-utils/files/givepin
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/bluez-utils/files/givepin')
-rw-r--r--openwrt/package/bluez-utils/files/givepin14
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