mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06: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
|
exit 0 # no rpi bluetooth detected
|
||||||
fi
|
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
|
test -n "${OS_VERSION}" || source /etc/init.d/base
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
|
@ -13,6 +13,10 @@ if ! [ -d "/proc/device-tree/soc/gpio@7e200000/uart0_pins" ]; then
|
|||||||
exit 0 # no rpi bluetooth detected
|
exit 0 # no rpi bluetooth detected
|
||||||
fi
|
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
|
test -n "${OS_VERSION}" || source /etc/init.d/base
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
|
@ -13,6 +13,10 @@ if ! [ -d "/proc/device-tree/soc/gpio@7e200000/uart0_pins" ]; then
|
|||||||
exit 0 # no rpi bluetooth detected
|
exit 0 # no rpi bluetooth detected
|
||||||
fi
|
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
|
test -n "${OS_VERSION}" || source /etc/init.d/base
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user