diff --git a/Debian/CPU Governor/setup.sh b/Debian/CPU Governor/setup.sh index 4ac946f..5c3666f 100644 --- a/Debian/CPU Governor/setup.sh +++ b/Debian/CPU Governor/setup.sh @@ -31,10 +31,16 @@ if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then "Ondemand" "Scales the frequency according to load" OFF \ "Powersave" "Run the CPU at the minimum frequency" ON 3>&1 1>&2 2>&3) else - echo "" + # If file exists on ondemand settings autoselect powersave in menu + Governor=$(whiptail --title "Choose a power plan" --radiolist \ + "Choose user's permissions" 9 61 3 \ + "Performance" "Run the CPU at the maximum frequency" OFF \ + "Ondemand" "Scales the frequency according to load" OFF \ + "Powersave" "Run the CPU at the minimum frequency" ON 3>&1 1>&2 2>&3) + fi else - TERM=ansi whiptail --title "Info" --infobox "This CPU/OS does not support a governor!" 7 44 + TERM=ansi whiptail --title "Info" --infobox "This CPU/OS does not support a governor! (yet)" 7 44 sleep 3 exit fi