summaryrefslogtreecommitdiff
path: root/recipes-connectivity/bluez/bluez5/init
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/bluez/bluez5/init')
-rwxr-xr-xrecipes-connectivity/bluez/bluez5/init4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-connectivity/bluez/bluez5/init b/recipes-connectivity/bluez/bluez5/init
index f6d0884..4d84195 100755
--- a/recipes-connectivity/bluez/bluez5/init
+++ b/recipes-connectivity/bluez/bluez5/init
@@ -29,6 +29,10 @@ case $1 in
fi
start-stop-daemon --start --background $SSD_OPTIONS $MOREOPTIONS
+ sleep 1
+ if [[ -n ${BLUETOOTHCTL_CMD} ]] ; then
+ echo -e "${BLUETOOTHCTL_CMD}" | /usr/bin/bluetoothctl 2>&1 | logger -t bluetoothctl -p daemon.info
+ fi
echo "${DAEMON##*/}"
;;