pandora-scripts and pandora-configtray: Moved Bluetooth into Wifi-packages as well
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_bluetooth.sh
diff --git a/recipes/pandora-system/pandora-scripts/op_bluetooth.sh b/recipes/pandora-system/pandora-scripts/op_bluetooth.sh
deleted file mode 100644 (file)
index fa47d05..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-#
-# Released under the GPL
-
-INTERFACE="`hciconfig | grep "^hci" | cut -d ':' -f 1`"
-LOCK=".op_btenabled"
-cd "$HOME"
-
-if [ "$1" = "startup" ]; then
-       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
-       
-       if hciconfig "$INTERFACE" | grep UP &>/dev/null
-       then
-               notify-send -u normal "Bluetooth" "Bluetooth is being disabled..." -i blueman -t 5000
-               sudo /usr/sbin/hciconfig ${INTERFACE} down 1>/dev/null
-               sudo /usr/pandora/scripts/op_bluetooth_work.sh 0
-               rm -f "$LOCK"
-       else
-               if ! sudo /usr/pandora/scripts/op_bluetooth_work.sh 1; then
-                       notify-send -u normal "Bluetooth" "Bluetooth error" -i blueman -t 3000
-                       exit 1
-               fi
-
-               pgrep bluetoothd
-               echo $INTERFACE
-                if [ $? -ne 1 ]; then
-                       notify-send -u normal "Bluetooth" "Bluetooth is being enabled..." -i blueman -t 5000
-                       sudo /usr/sbin/hciconfig ${INTERFACE} down 1>/dev/null
-                       sudo /usr/sbin/hciconfig ${INTERFACE} up pscan 1>/dev/null
-                       sudo /usr/sbin/bluetoothd 1>/dev/null
-                       touch "$LOCK"
-               fi
-       fi
-fi