From d02f7833ed0bab46ac524fab4e0733b742be1b8c Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 29 Jul 2005 14:06:42 +0000 Subject: add missing givepin file git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1574 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/bluez-utils/files/givepin | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/bluez-utils/files/givepin diff --git a/package/bluez-utils/files/givepin b/package/bluez-utils/files/givepin new file mode 100644 index 000000000..e52a3384a --- /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 -- cgit v1.2.3