You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
227 B

  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