From 9c8716c8d5727e52db562fc3294e18a3aa1e8217 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Feb 2010 17:59:31 +0100 Subject: [PATCH] fixed typo modified: testdata/scripts/op_power.sh --- testdata/scripts/op_power.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testdata/scripts/op_power.sh b/testdata/scripts/op_power.sh index a4bf57b..a95b977 100755 --- a/testdata/scripts/op_power.sh +++ b/testdata/scripts/op_power.sh @@ -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 -- 2.39.2