bluez: init: add debug

This commit is contained in:
Stefan Saraev 2013-07-19 20:52:00 +03:00
parent cff10844b3
commit 793001f943

View File

@ -28,6 +28,10 @@
# ensure that environment is sane
. /etc/profile
if [ "$DEBUG" = "yes" ]; then
BLUEZ_DEBUG="-d"
fi
BLUEZ_ENABLED=true
if [ -f $CONFIG_CACHE/service_bluez.conf ]; then
. $CONFIG_CACHE/service_bluez.conf
@ -36,6 +40,6 @@
if [ "$BLUEZ_ENABLED" == "true" ]; then
progress "Starting bluetooth daemon"
wait_for_dbus
/usr/lib/bluetooth/bluetoothd &>/dev/null
/usr/lib/bluetooth/bluetoothd $BLUEZ_DEBUG &>/dev/null
fi
)&