Raspberry Pi (all): S13btuart: exit on empty bluetooth.conf

This commit is contained in:
Calin Crisan 2019-09-12 21:55:32 +03:00
parent 969a6bf980
commit fd12ec83cb
3 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,10 @@ if ! [ -d "/proc/device-tree/soc/gpio@7e200000/uart0_pins" ]; then
exit 0 # no rpi bluetooth detected
fi
if [[ -f ${CONF} ]] && ! [[ -s ${CONF} ]]; then
exit 0 # bluetooth explicitly disabled by empty bluetooth.conf
fi
test -n "${OS_VERSION}" || source /etc/init.d/base
function start() {

View File

@ -13,6 +13,10 @@ if ! [ -d "/proc/device-tree/soc/gpio@7e200000/uart0_pins" ]; then
exit 0 # no rpi bluetooth detected
fi
if [[ -f ${CONF} ]] && ! [[ -s ${CONF} ]]; then
exit 0 # bluetooth explicitly disabled by empty bluetooth.conf
fi
test -n "${OS_VERSION}" || source /etc/init.d/base
function start() {

View File

@ -13,6 +13,10 @@ if ! [ -d "/proc/device-tree/soc/gpio@7e200000/uart0_pins" ]; then
exit 0 # no rpi bluetooth detected
fi
if [[ -f ${CONF} ]] && ! [[ -s ${CONF} ]]; then
exit 0 # bluetooth explicitly disabled by empty bluetooth.conf
fi
test -n "${OS_VERSION}" || source /etc/init.d/base
function start() {