op_power.sh: Fixed problem that speed always went back to 500MHz instead
authorMichael Mrozek <EvilDragon@openpandora.de>
Thu, 26 Aug 2010 02:38:33 +0000 (04:38 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Thu, 26 Aug 2010 02:38:33 +0000 (04:38 +0200)
of the original speed

testdata/scripts/op_power.sh

index 4039c1f..4b26b55 100755 (executable)
@@ -10,6 +10,7 @@ if [ "$1" -le "2" ]; then # button was pressed 1-2sec, "suspend"
   fi
   if [ $powerstate -eq "1" ]; then
     #in lowpower mode
+    oldspeed=$(cat /tmp/oldspeed)
     if [ $oldspeed -gt 14 ] && [ $oldspeed -le 900 ]; then 
      echo $oldspeed > /proc/pandora/cpu_mhz_max 
     else