6 curmhz="$(cat /proc/pandora/cpu_mhz_max)"
7 newmhz="$(cat /proc/pandora/cpu_mhz_max)"
8 device=/proc/pandora/cpu_mhz_max
11 newmhz=$(zenity --scale --text "Set CPU clockspeed" --min-value=$minmhz --max-value=$maxmhz --value=$curmhz --step 1)
13 newmhz=$(read -p "Please enter the desired clockspeed")
19 if [ $newmhz -gt $safemhz ]; then
21 answer=$(zenity --question --title "Alert" --text "You are trying to set the CPU clock to $newmhz which is above its specification of $safemhz, doing so may burn down your house, sour milk, or just blow up (OK, not that likely)! Proceed?";echo $?)
23 if [ $answer = 1 ]; then exit 1; fi
25 answer="n";read -p "You are trying to set the CPU clock to $newmhz which is above its specification of $safemhz, doing so may burn down your house, sour milk, or just blow up (OK, not that likely)! Proceed? [y/n]" -t 10 answer
27 if [ $answer = n ]; then exit 1; fi
31 if [ $newmhz -le $minmhz ]; then newmhz=$minmhz; fi
32 if [ $newmhz -ge $maxmhz ]; then newmhz=$maxmhz; fi
33 echo $newmhz > $device
34 echo cpu_mhz_max set to $(cat /proc/pandora/cpu_mhz_max)