fixed typo
authorroot <root@pndtest.(none)>
Thu, 18 Feb 2010 16:59:31 +0000 (17:59 +0100)
committerroot <root@pndtest.(none)>
Thu, 18 Feb 2010 16:59:31 +0000 (17:59 +0100)
modified:   testdata/scripts/op_power.sh

testdata/scripts/op_power.sh

index a4bf57b..a95b977 100755 (executable)
@@ -8,7 +8,7 @@ if [ "$1" -le "3" ]; then # button was pressed 1-3sec, "suspend"
   else
     powerstate=0
   fi
-  if [$powerstate -eq 1 ]; then
+  if [ $powerstate -eq "1" ]; then
     #in lowpower mode
     echo 0 > /tmp/powerstate
     oldbright=$(cat /tmp/oldbright)
@@ -25,7 +25,7 @@ if [ "$1" -le "3" ]; then # button was pressed 1-3sec, "suspend"
       echo 500 > /proc/pandora/cpu_mhz_max
     fi
     hciconfig hci0 up
-    /etc/init.d/S30wlxxx-i/etc/init.d/wl1251-init start
+    /etc/init.d/wl1251-init start
     pidlist=$(pstree -lpA | grep pnd_run.sh | sed -ne 's/.*(\([0-9]\+\))/\1/p')
     for PID in $pidlist
     do
@@ -42,7 +42,7 @@ if [ "$1" -le "3" ]; then # button was pressed 1-3sec, "suspend"
       kill -19 $PID #send SIGSTOP
     done
     hciconfig hci0 down
-    /etc/init.d/S30wlxxx-i/etc/init.d/wl1251-init stop
+    /etc/init.d/wl1251-init stop
     echo 0 > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness
     echo 14 > /proc/pandora/cpu_mhz_max
   fi