pandora-scripts: Add latest op_bluetooth.sh
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_bluetooth.sh
index b195a7d..081d8b4 100644 (file)
@@ -2,15 +2,9 @@
 #
 # Released under the GPL
 
-STARTUP=0
-
-if [ ${1} = startup ]; then
- STARTUP=1
-fi
-
 INTERFACE="`hciconfig | grep "^hci" | cut -d ':' -f 1`"
 
-if [ ${STARTUP} = 1 ]; then
+if [ ${1} = "startup" ]; then
        [ -f ~/.op_btenabled ] && sudo /usr/sbin/hciconfig ${INTERFACE} up pscan && sudo /usr/sbin/bluetoothd ||echo "Bluetooth: User has not enabled Bluetooth." 
 else