op_cpuspeed: Bugfix: Pressing cancel did set CPU-Speed to 0
authorMichael Mrozek <EvilDragon@openpandora.org>
Tue, 13 Apr 2010 23:06:53 +0000 (01:06 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Tue, 13 Apr 2010 23:06:53 +0000 (01:06 +0200)
recipes/pandora-system/pandora-scripts/op_cpuspeed.sh

index 3f2c65b..df9b72a 100644 (file)
@@ -29,6 +29,6 @@ if [ $newmhz ]; then
  
         if [ $newmhz -le $minmhz ]; then newmhz=$minmhz; fi
         if [ $newmhz -ge $maxmhz ]; then newmhz=$maxmhz; fi
  
         if [ $newmhz -le $minmhz ]; then newmhz=$minmhz; fi
         if [ $newmhz -ge $maxmhz ]; then newmhz=$maxmhz; fi
+       echo $newmhz > $device
+       echo cpu_mhz_max set to $(cat /proc/pandora/cpu_mhz_max)
 fi
 fi
-echo $newmhz > $device
-echo cpu_mhz_max set to $(cat /proc/pandora/cpu_mhz_max)