Update kvm.sh

This commit is contained in:
悟空的日常镜像仓库 2024-09-30 21:48:58 +08:00
parent 4ad51ec4ae
commit c916a7ad90

View File

@ -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