projects
/
bluetooth-cookbook
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ensure that bluetoothd --compat for sdptool is used
[bluetooth-cookbook]
/
bt-serial-server.sh
1
#!/bin/sh -xe
2
/etc/init.d/bluetooth.sh restart || systemctl restart bluetooth.service
3
hciconfig -a
4
hciconfig hci0 up
5
hciconfig hci0 piscan
6
sdptool add --channel=3 SP
7
test -e /dev/rfcomm0 || mknod -m 666 /dev/rfcomm0 c 216 0
8
rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 115200 linux
9