From db907c70ec0479b82020a0c82ce95b51493d88d4 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 25 Mar 2022 14:35:40 -0400 Subject: [PATCH] Update scaling-governor.sh --- misc/scaling-governor.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/misc/scaling-governor.sh b/misc/scaling-governor.sh index a857b40c..630e87b7 100644 --- a/misc/scaling-governor.sh +++ b/misc/scaling-governor.sh @@ -10,17 +10,35 @@ while true; do esac done clear +function header_info { +echo -e " + _____ _____ _ _ + / ____| __ \| | | | + | | | |__) | | | | + | | | ___/| | | | + | |____| | | |__| | + \_____|_| \____/ + Scaling Governors +" +} show_menu(){ CL=`echo "\033[m"` GN=`echo "\033[32m"` BL=`echo "\033[36m"` YW=`echo "\033[33m"` fgred=`echo "\033[31m"` +header_info + CK=$(uname -r) IP=$(hostname -I) + MAC=$(cat /sys/class/net/eno1/address) ACSG=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors) CCSG=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) echo -e "${YW}Proxmox IP ${BL}${IP}${CL}" + echo -e "${YW}MAC Address ${BL}${MAC}${CL}" + + echo -e "${YW}Current Kernel ${BL}${CK}${CL}" + echo -e "\n${YW}Available CPU Scaling Governors ${BL}${ACSG}${CL}"