From: Urja Rannikko Date: Sat, 24 Nov 2012 19:54:16 +0000 (+0200) Subject: op_bluetooth: restore enabled state X-Git-Tag: sz_153~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=e6059fac9fd5df091ef85fa0b380af59f49d9400 op_bluetooth: restore enabled state --- diff --git a/recipes/pandora-system/pandora-scripts/op_bluetooth.sh b/recipes/pandora-system/pandora-scripts/op_bluetooth.sh index b63fe76..fa47d05 100644 --- a/recipes/pandora-system/pandora-scripts/op_bluetooth.sh +++ b/recipes/pandora-system/pandora-scripts/op_bluetooth.sh @@ -7,8 +7,13 @@ LOCK=".op_btenabled" cd "$HOME" if [ "$1" = "startup" ]; then - [ -f "$LOCK" ] && sudo /usr/sbin/hciconfig "$INTERFACE" up pscan 1>/dev/null && sudo /usr/sbin/bluetoothd || echo "Bluetooth: User has not enabled Bluetooth." - + if [ -f "$LOCK" ]; then + sudo /usr/pandora/scripts/op_bluetooth_work.sh 1 + INTERFACE="`hciconfig | grep "^hci" | cut -d ':' -f 1`" + sudo /usr/sbin/hciconfig "$INTERFACE" up pscan 1>/dev/null && sudo /usr/sbin/bluetoothd + else + echo "Bluetooth: User has not enabled Bluetooth." + fi else # Figure out if Bluetooth is running or not