scaling_governor=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Current CPU Scaling Governor is set to $current_governor" --checklist "\nSelect the Scaling Governor to use:\n"16$((MSG_MAX_LENGTH +58))6"${GOVERNORS_MENU[@]}" 3>&1 1>&2 2>&3| tr -d '"')|| exit
[ -z "$scaling_governor"]&&{
whiptail --backtitle "Proxmox VE Helper Scripts" --title "No CPU Scaling Governor Selected" --msgbox "It appears that no CPU Scaling Governor was selected"1068
clear
exit
}
echo"${scaling_governor}"| tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >/dev/null
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Current CPU Scaling Governor""\nCurrent CPU Scaling Governor has been set to $current_governor\n"1060
@ -34,6 +39,7 @@ CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "CPU Scaling G
case$CHOICE in
yes)
set +e
NEW_CRONTAB_COMMAND="(sleep 60 && echo \"$current_governor\" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor)"