From f2c54ba6defd0d68a9d4f63b402829bcb9f873ad Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 28 May 2023 13:03:05 -0400 Subject: [PATCH] Update post-pve-install.sh tweak the N-series processor detection --- misc/post-pve-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/post-pve-install.sh b/misc/post-pve-install.sh index b9e737ee..93f4959d 100644 --- a/misc/post-pve-install.sh +++ b/misc/post-pve-install.sh @@ -144,7 +144,7 @@ EOF microcode="" cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+') if [ "$cpu" == "GenuineIntel" ]; then - if lscpu | awk '/Model name:.*N/ {exit 0} END {exit 1}'; then + if 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)