givepin 227 B

1234567891011121314
  1. #!/bin/sh
  2. # Write bluetooth PIN number here:
  3. pin=
  4. if [ -z "$pin" ]; then
  5. msg="Set bluetooth PIN in file $0"
  6. logger -p user.err "$msg"
  7. for i in /dev/pts/* ; do
  8. [ -w $i ] && echo "$msg" > $i
  9. done
  10. else
  11. echo "PIN:$pin"
  12. fi