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:
parent
15395448d5
commit
0d5ab74c15
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue