From: Dobrica Pavlinusic Date: Sat, 24 Sep 2016 17:55:34 +0000 (+0200) Subject: start bluetooth serial port server with agetty X-Git-Url: http://git.rot13.org/?p=bluetooth-cookbook;a=commitdiff_plain;h=58f846fcba531c80c4d27a9997d9d62273998579 start bluetooth serial port server with agetty --- 58f846fcba531c80c4d27a9997d9d62273998579 diff --git a/bt-serial-server.sh b/bt-serial-server.sh new file mode 100755 index 0000000..cc158bf --- /dev/null +++ b/bt-serial-server.sh @@ -0,0 +1,8 @@ +#!/bin/sh -xe +hciconfig -a +hciconfig hci0 up +hciconfig hci0 piscan +sdptool add --channel=3 SP +test -e /dev/rfcomm0 || mknod -m 666 /dev/rfcomm0 c 216 0 +rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 115200 linux +