openwrtv3/openwrt/package/bluez-utils/files/givepin
Felix Fietkau e405ecc5c4 add missing givepin file
SVN-Revision: 1574
2005-07-29 14:06:42 +00:00

14 lines
227 B
Bash

#!/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