aboutsummaryrefslogtreecommitdiffstats
path: root/package/bluez-utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-07-29 14:06:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-07-29 14:06:42 +0000
commitc086ffc18d27a4fc5c00f36a2caf17d8a3548a3c (patch)
treeb4ae74b080d5f6d019a6038a43e42059d407540d /package/bluez-utils
parent124e02570ec730f20ef9d0eb5b2567c40b481d13 (diff)
downloadupstream-c086ffc18d27a4fc5c00f36a2caf17d8a3548a3c.tar.gz
upstream-c086ffc18d27a4fc5c00f36a2caf17d8a3548a3c.tar.bz2
upstream-c086ffc18d27a4fc5c00f36a2caf17d8a3548a3c.zip
add missing givepin file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1574 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/bluez-utils')
-rw-r--r--package/bluez-utils/files/givepin14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/bluez-utils/files/givepin b/package/bluez-utils/files/givepin
new file mode 100644
index 0000000000..e52a3384af
--- /dev/null
+++ b/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