start bluetooth serial port server with agetty
[bluetooth-cookbook] / bt-serial-server.sh
1 #!/bin/sh -xe
2 hciconfig -a
3 hciconfig hci0 up
4 hciconfig hci0 piscan
5 sdptool add --channel=3 SP
6 test -e /dev/rfcomm0 || mknod -m 666 /dev/rfcomm0 c 216 0
7 rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 115200 linux
8