pandora-scripts and pandora-configtray: Moved Bluetooth into Wifi-packages as well
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_bluetooth_work.sh
diff --git a/recipes/pandora-system/pandora-scripts/op_bluetooth_work.sh b/recipes/pandora-system/pandora-scripts/op_bluetooth_work.sh
deleted file mode 100644 (file)
index 25cb3b5..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-
-kernel_major=`uname -r | cut -c 1`
-if [ "$kernel_major" = "2" ]; then
-       # new kernel only (for now)
-       exit 0
-fi
-
-if [ "$1" = "1" ]; then
-       if [ ! -e /sys/class/gpio/gpio15/value ]; then
-               echo 15 > /sys/class/gpio/export
-               sleep 0.2
-               echo out > /sys/class/gpio/gpio15/direction
-       fi
-       echo 0 > /sys/devices/platform/omap_uart.0/sleep_timeout
-       echo 1 > /sys/class/gpio/gpio15/value
-       hciattach /dev/ttyO0 texasalt 3000000
-       INTERFACE="`hciconfig | grep "^hci" | cut -d ':' -f 1`"
-       if [ -z "$INTERFACE" ]; then
-               killall hciattach
-               echo 0 > /sys/class/gpio/gpio15/value
-               exit 1
-       fi
-       if [ -e /sys/class/leds/ ] ; then
-               for led in /sys/class/leds/* ; do
-                       trigger=$(grep "$(basename $led)" /etc/default/leds | grep bluetooth | \
-                                       awk '{print $2}' )
-                       if [ "$trigger" = "bluetooth" ] ; then
-                               echo default-on > "$led/trigger"
-                               echo 255 > "$led/brightness"
-                       fi
-               done
-       fi
-       exit 0
-elif [ "$1" = "0" ]; then
-       killall hciattach
-       echo 0 > /sys/class/gpio/gpio15/value
-       if [ -e /sys/class/leds/ ] ; then
-               for led in /sys/class/leds/* ; do
-                       trigger=$(grep "$(basename $led)" /etc/default/leds | grep bluetooth | \
-                                       awk '{print $2}' )
-                       if [ "$trigger" = "bluetooth" ] ; then
-                               echo 0 > "$led/brightness"
-                       fi                      
-               done
-       fi
-       echo 10 > /sys/devices/platform/omap_uart.0/sleep_timeout
-       exit 0
-else
-       echo "invalid argument"
-       exit 1
-fi
-