6 curmhz=$(cat /proc/pandora/cpu_mhz_max)
7 device=/proc/pandora/cpu_mhz_max
10 newmhz=$(zenity --scale --text "set cpu mhz" --min-value=$minmhz --max-value=$maxmhz --value=$curmhz --step 1)
12 newmhz=$(read -p "Pleas enter the desired speed")
18 if [ $newmhz -ge $safemhz ]; then
20 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 $?)
22 if [ $answer = 1 ]; then exit 1; fi
24 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
26 if [ $answer = n ]; then exit 1; fi
30 if [ $newmhz -le $minmhz ]; then newmhz=$minmhz; fi
31 if [ $newmhz -ge $maxmhz ]; then newmhz=$maxmhz; fi
32 echo $newmhz > $device
33 echo cpu_mhz_max set to $(cat /proc/pandora/cpu_mhz_max)