From 012dbbd69386675b54d5bf5e913077f89d55c34c Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Wed, 27 Dec 2017 01:06:48 +0200 Subject: [PATCH] don't start bluetooth service unless bluetoothd present --- board/common/overlay/etc/init.d/S37bluetooth | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/common/overlay/etc/init.d/S37bluetooth b/board/common/overlay/etc/init.d/S37bluetooth index c68cd9c8d6..0e9a03c807 100755 --- a/board/common/overlay/etc/init.d/S37bluetooth +++ b/board/common/overlay/etc/init.d/S37bluetooth @@ -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