From c95659658ae3c00f2ad6d51d3e716247fabc7ab8 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Fri, 4 Jun 2010 23:45:24 +0200 Subject: [PATCH] op_cpuspeed: Small fix to not set CPU to -1 (which happened sometimes) --- recipes/pandora-system/pandora-scripts/op_cpuspeed.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh b/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh index df9b72a..7860562 100644 --- a/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh +++ b/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh @@ -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 -- 2.39.2