mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
don't start bluetooth service unless bluetoothd present
This commit is contained in:
parent
dafda9104a
commit
012dbbd693
@ -14,14 +14,16 @@ fi
|
|||||||
|
|
||||||
test -f $conf || exit 0
|
test -f $conf || exit 0
|
||||||
|
|
||||||
test -n "$os_version" || source /etc/init.d/base
|
|
||||||
|
|
||||||
hci=hci0
|
hci=hci0
|
||||||
bluetoothd=/usr/libexec/bluetooth/bluetoothd
|
bluetoothd=/usr/libexec/bluetooth/bluetoothd
|
||||||
data_dir=/var/lib/bluetooth
|
data_dir=/var/lib/bluetooth
|
||||||
run_data_dir=/data/bluetooth
|
run_data_dir=/data/bluetooth
|
||||||
run_conf=/var/lib/bluetooth.conf
|
run_conf=/var/lib/bluetooth.conf
|
||||||
|
|
||||||
|
test -x $bluetoothd || exit 0
|
||||||
|
|
||||||
|
test -n "$os_version" || source /etc/init.d/base
|
||||||
|
|
||||||
configure() {
|
configure() {
|
||||||
mkdir -p $run_data_dir
|
mkdir -p $run_data_dir
|
||||||
ln -sf $run_data_dir $data_dir
|
ln -sf $run_data_dir $data_dir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user