From a8c22e0c67e7493a228f736982038a2d15c0acb2 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 10 Jan 2023 11:16:26 -0500 Subject: [PATCH] Update scaling-governor.sh tweak --- misc/scaling-governor.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/misc/scaling-governor.sh b/misc/scaling-governor.sh index 1d0774c2..e7eea1d2 100644 --- a/misc/scaling-governor.sh +++ b/misc/scaling-governor.sh @@ -1,5 +1,17 @@ #!/usr/bin/env bash +function header_info { + cat <<"EOF" + __________ __ __ + / ____/ __ \/ / / / + / / / /_/ / / / / +/ /___/ ____/ /_/ / +\____/_/ \____/ +Scaling Governors + +EOF +} clear +header_info set -e while true; do read -p "View CPU Scaling Governors. Proceed(y/n)?" yn @@ -10,17 +22,7 @@ while true; do esac done clear -function header_info { - echo -e " - _____ _____ _ _ - / ____| __ \| | | | - | | | |__) | | | | - | | | ___/| | | | - | |____| | | |__| | - \_____|_| \____/ - Scaling Governors -" -} + show_menu() { CL=$(echo "\033[m") GN=$(echo "\033[32m")