op_cpuspeed: Small fix to not set CPU to -1 (which happened sometimes)
authorMichael Mrozek <EvilDragon@openpandora.org>
Fri, 4 Jun 2010 21:45:24 +0000 (23:45 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Fri, 4 Jun 2010 21:45:24 +0000 (23:45 +0200)
recipes/pandora-system/pandora-scripts/op_cpuspeed.sh

index df9b72a..7860562 100644 (file)
@@ -3,13 +3,14 @@
 minmhz=14
 safemhz=600
 maxmhz=900
+newmhz=$(cat /proc/pandora/cpu_mhz_max)
 curmhz=$(cat /proc/pandora/cpu_mhz_max)
 device=/proc/pandora/cpu_mhz_max
 if [ ! $1 ]; then
        if [ $DISPLAY ]; then
                newmhz=$(zenity --scale --text "set cpu mhz" --min-value=$minmhz --max-value=$maxmhz --value=$curmhz --step 1)
        else
-               newmhz=$(read -p "Pleas enter the desired speed")
+               newmhz=$(read -p "Please enter the desired speed")
        fi
 else
 newmhz=$1