From c7796d0fd20ee42bd4a26845bee2a05156e92c98 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 28 May 2023 13:38:52 -0400 Subject: [PATCH] Update post-pve-install.sh Code refactoring --- misc/post-pve-install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/misc/post-pve-install.sh b/misc/post-pve-install.sh index 93f4959d..5a624b88 100644 --- a/misc/post-pve-install.sh +++ b/misc/post-pve-install.sh @@ -142,9 +142,7 @@ EOF esac microcode="" - cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+') - if [ "$cpu" == "GenuineIntel" ]; then - if lscpu | grep -qP 'Model name:.*N'; then + if lscpu | grep -qP 'Vendor ID:.*GenuineIntel' && lscpu | grep -qP 'Model name:.*N'; then CHOICE=$(whiptail --title "N-SERIES PROCESSOR DETECTED" --menu "\nTo ensure compatibility with Proxmox VE on systems equipped with N-series processors, it is recommended to install the Proxmox 6.2 kernel.\n\nInstall the Proxmox 6.2 kernel now?" 16 58 2 \ "yes" " " \ "no" " " 3>&1 1>&2 2>&3) @@ -159,7 +157,6 @@ EOF msg_error "Selected no to Installing the Proxmox 6.2 kernel" ;; esac - fi fi if [ "$microcode" == "need" ]; then