mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Raspberry Pi (all): S13btuart: exit on empty bluetooth.conf
This commit is contained in:
parent
969a6bf980
commit
fd12ec83cb
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user