Update scaling-governor.sh

pull/95/head
tteckster 3 years ago committed by GitHub
parent 0118f1fb0e
commit ed7c357edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,14 @@
#!/usr/bin/env bash
set -e
while true; do
read -p "Change CPU Scaling Governors. Proceed(y/n)?" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
clear
show_menu(){
CL=`echo "\033[m"`
GN=`echo "\033[32m"`
@ -24,7 +33,7 @@ show_menu(){
printf "${BL}**${YW} 5)${GN} Switch to ${BL}performance${CL}${GN} CPU Scaling Governor ${CL}\n"
printf "${BL}**${YW} 6)${GN} Switch to ${BL}schedutil${CL}${GN} CPU Scaling Governor ${CL}\n"
printf "\n ${fgred}NOTE: Settings return to default after reboot${CL}\n"
printf "\n Please choose an option from the menu and press [ENTER] or ${fgred}x to exit. ${CL}"
printf "\n Please choose an option from the menu and press [ENTER] or ${fgred}x${CL} to exit."
read opt
}
clear

Loading…
Cancel
Save

Powered by BW's shoe-string budget.