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
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
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "CPU Scaling Governor" --menu "This will establish a crontab to maintain the CPU Scaling Governor configuration across reboots.\n \nSetup a crontab?"14682\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
yes)
NEW_CRONTAB_COMMAND="(sleep 60 && echo \"$current_governor\" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor)"