From: David-John Willis Date: Wed, 7 Apr 2010 21:22:42 +0000 (+0100) Subject: pandora-scripts: Add latest op_bluetooth.sh X-Git-Tag: Release-2010-05/1~65^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=f481acfb5b96156d1ad3d11df57756274367ec76;ds=sidebyside pandora-scripts: Add latest op_bluetooth.sh --- 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