From 58f846fcba531c80c4d27a9997d9d62273998579 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 24 Sep 2016 19:55:34 +0200 Subject: [PATCH] start bluetooth serial port server with agetty --- bt-serial-server.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bt-serial-server.sh 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 + -- 2.20.1