From f481acfb5b96156d1ad3d11df57756274367ec76 Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Wed, 7 Apr 2010 22:22:42 +0100 Subject: [PATCH] pandora-scripts: Add latest op_bluetooth.sh --- recipes/pandora-system/pandora-scripts/op_bluetooth.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/recipes/pandora-system/pandora-scripts/op_bluetooth.sh b/recipes/pandora-system/pandora-scripts/op_bluetooth.sh index b195a7d..081d8b4 100644 --- a/recipes/pandora-system/pandora-scripts/op_bluetooth.sh +++ b/recipes/pandora-system/pandora-scripts/op_bluetooth.sh @@ -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 -- 2.39.5