Update kvm.sh
This commit is contained in:
parent
4ad51ec4ae
commit
c916a7ad90
@ -368,10 +368,10 @@ update_scripts() {
|
||||
check_cpu_architecture() {
|
||||
ARCH=$(uname -m)
|
||||
if [[ "$ARCH" == "x86_64" ]]; then
|
||||
echo -e " CPU型号:$(grep -m 1 "model name" /proc/cpuinfo | awk -F ': ' '{print $2}')"
|
||||
light_magenta " 当前CPU型号:$(grep -m 1 "model name" /proc/cpuinfo | awk -F ': ' '{print $2}')"
|
||||
elif [[ "$ARCH" == "aarch64" || "$ARCH" == "armv7l" ]]; then
|
||||
if [[ -f /proc/device-tree/model ]]; then
|
||||
echo -e " ARM机型:$(cat /proc/device-tree/model | tr -d '\0')"
|
||||
light_magenta " 当前ARM机型:$(cat /proc/device-tree/model | tr -d '\0')"
|
||||
else
|
||||
echo -e " Board model information not available."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user