]> git.openpandora.org Git - pandora-libraries.git/commitdiff
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 4039c1fffe44ee356a6a1f76180d115b3b772dd4..4b26b557905c2986fa738cca7e30157f3af3eebc 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