don't start bluetooth service unless bluetoothd present

This commit is contained in:
Calin Crisan 2017-12-27 01:06:48 +02:00
parent dafda9104a
commit 012dbbd693

View File

@ -14,14 +14,16 @@ fi
test -f $conf || exit 0
test -n "$os_version" || source /etc/init.d/base
hci=hci0
bluetoothd=/usr/libexec/bluetooth/bluetoothd
data_dir=/var/lib/bluetooth
run_data_dir=/data/bluetooth
run_conf=/var/lib/bluetooth.conf
test -x $bluetoothd || exit 0
test -n "$os_version" || source /etc/init.d/base
configure() {
mkdir -p $run_data_dir
ln -sf $run_data_dir $data_dir