mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 06:21:56 +00:00
Update scaling-governor.sh
revert the revert
This commit is contained in:
parent
f777a968ea
commit
cf1f174174
@ -22,11 +22,11 @@ echo -e "
|
|||||||
"
|
"
|
||||||
}
|
}
|
||||||
show_menu() {
|
show_menu() {
|
||||||
CL=`echo "\033[m"`
|
CL=$(echo "\033[m")
|
||||||
GN=`echo "\033[32m"`
|
GN=$(echo "\033[32m")
|
||||||
BL=`echo "\033[36m"`
|
BL=$(echo "\033[36m")
|
||||||
YW=`echo "\033[33m"`
|
YW=$(echo "\033[33m")
|
||||||
fgred=`echo "\033[31m"`
|
fgred=$(echo "\033[31m")
|
||||||
header_info
|
header_info
|
||||||
CK=$(uname -r)
|
CK=$(uname -r)
|
||||||
IP=$(hostname -I)
|
IP=$(hostname -I)
|
||||||
@ -57,42 +57,50 @@ header_info
|
|||||||
}
|
}
|
||||||
clear
|
clear
|
||||||
show_menu
|
show_menu
|
||||||
while [ $opt != '' ]
|
while [ $opt != '' ]; do
|
||||||
do
|
|
||||||
if [ $opt = '' ]; then
|
if [ $opt = '' ]; then
|
||||||
exit;
|
exit
|
||||||
else
|
else
|
||||||
case $opt in
|
case $opt in
|
||||||
1) echo "conservative" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
1)
|
||||||
|
echo "conservative" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||||
clear
|
clear
|
||||||
show_menu
|
show_menu
|
||||||
;;
|
;;
|
||||||
2) echo "ondemand" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
2)
|
||||||
|
echo "ondemand" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||||
clear
|
clear
|
||||||
show_menu
|
show_menu
|
||||||
;;
|
;;
|
||||||
3) echo "userspace" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
3)
|
||||||
|
echo "userspace" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||||
clear
|
clear
|
||||||
show_menu
|
show_menu
|
||||||
;;
|
;;
|
||||||
4) echo "powersave" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
4)
|
||||||
|
echo "powersave" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||||
clear
|
clear
|
||||||
show_menu
|
show_menu
|
||||||
;;
|
;;
|
||||||
5) echo "performance" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
5)
|
||||||
|
echo "performance" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||||
clear
|
clear
|
||||||
show_menu
|
show_menu
|
||||||
;;
|
;;
|
||||||
6) echo "schedutil" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
6)
|
||||||
|
echo "schedutil" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||||
clear
|
clear
|
||||||
show_menu
|
show_menu
|
||||||
;;
|
;;
|
||||||
x)exit;
|
x)
|
||||||
|
exit
|
||||||
;;
|
;;
|
||||||
\n)exit;
|
\n)
|
||||||
|
exit
|
||||||
;;
|
;;
|
||||||
*)clear;
|
*)
|
||||||
show_menu;
|
clear
|
||||||
|
show_menu
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user