mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update scaling-governor.sh
This commit is contained in:
		
							parent
							
								
									36eea12323
								
							
						
					
					
						commit
						db907c70ec
					
				| 
						 | 
					@ -10,17 +10,35 @@ while true; do
 | 
				
			||||||
    esac
 | 
					    esac
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
 | 
					function header_info {
 | 
				
			||||||
 | 
					echo -e "
 | 
				
			||||||
 | 
					   _____ _____  _    _ 
 | 
				
			||||||
 | 
					  / ____|  __ \| |  | |
 | 
				
			||||||
 | 
					 | |    | |__) | |  | |
 | 
				
			||||||
 | 
					 | |    |  ___/| |  | |
 | 
				
			||||||
 | 
					 | |____| |    | |__| |
 | 
				
			||||||
 | 
					  \_____|_|     \____/ 
 | 
				
			||||||
 | 
					    Scaling Governors
 | 
				
			||||||
 | 
					"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
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
 | 
				
			||||||
 | 
					    CK=$(uname -r)
 | 
				
			||||||
    IP=$(hostname -I)
 | 
					    IP=$(hostname -I)
 | 
				
			||||||
 | 
					    MAC=$(cat /sys/class/net/eno1/address)
 | 
				
			||||||
    ACSG=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)
 | 
					    ACSG=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)
 | 
				
			||||||
    CCSG=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
 | 
					    CCSG=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
 | 
				
			||||||
    echo -e "${YW}Proxmox IP ${BL}${IP}${CL}"
 | 
					    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
 | 
					    echo -e "\n${YW}Available CPU Scaling Governors
 | 
				
			||||||
    ${BL}${ACSG}${CL}"
 | 
					    ${BL}${ACSG}${CL}"
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue