btfilter: bluez-init: Start bluetoothd daemon as service

blueoothd does not longer daemonize. It needs to be start-stop as a service

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2015-11-09 14:00:24 +01:00
parent 15395448d5
commit 0d5ab74c15
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ MACHINENAME="$(cat /proc/device-tree/digi,machine,name 2>/dev/null || cat /sys/k
[ "${MACHINENAME}" = "ccardimx28" -o "${MACHINENAME}" = "ccimx6sbc" ] && bt_init
# Run bluetooth daemon
if hciconfig hci0 up && /usr/lib/bluez5/bluetooth/bluetoothd; then
if hciconfig hci0 up && start-stop-daemon -S --background --exec /usr/lib/bluez5/bluetooth/bluetoothd; then
: # No-op
else
echo "${SCRIPTNAME}: FAILED"