summaryrefslogtreecommitdiffstats
path: root/package/bluez-utils/files/givepin
blob: e52a3384af90780e1ca80eba0a9546b09c416e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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