btuart attach: don't start unless rpi bt adapter detected

This commit is contained in:
Calin Crisan 2017-04-25 20:05:53 +03:00
parent e83a9d02f2
commit 2ea7a0eb60

View File

@ -6,6 +6,8 @@ conf="/data/etc/bluetooth.conf"
test -f $conf || test -f $boot_conf || test -f $sys_conf || exit 0
test -d "/proc/device-tree/soc/gpio@7e200000/uart0_pins" || exit 0 # no rpi bluetooth detected
test -n "$os_version" || source /etc/init.d/base
function start() {