Update Debian/CPU Governor/setup.sh

This commit is contained in:
b.waal 2025-05-09 15:22:28 +02:00
parent c557a85702
commit 1a8746b078

View File

@ -31,10 +31,16 @@ if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
"Ondemand" "Scales the frequency according to load" OFF \ "Ondemand" "Scales the frequency according to load" OFF \
"Powersave" "Run the CPU at the minimum frequency" ON 3>&1 1>&2 2>&3) "Powersave" "Run the CPU at the minimum frequency" ON 3>&1 1>&2 2>&3)
else 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 fi
else 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 sleep 3
exit exit
fi fi