#!/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 doneelse echo "PIN:$pin"fi