mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "c7796d0fd20ee42bd4a26845bee2a05156e92c98" and "a85205cb80b5d0b9568f43fe4abf7ae329b7f332" have entirely different histories.
c7796d0fd2
...
a85205cb80
|
@ -142,7 +142,9 @@ EOF
|
||||||
esac
|
esac
|
||||||
|
|
||||||
microcode=""
|
microcode=""
|
||||||
if lscpu | grep -qP 'Vendor ID:.*GenuineIntel' && lscpu | grep -qP 'Model name:.*N'; then
|
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
|
||||||
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 \
|
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" " " \
|
"yes" " " \
|
||||||
"no" " " 3>&1 1>&2 2>&3)
|
"no" " " 3>&1 1>&2 2>&3)
|
||||||
|
@ -158,6 +160,7 @@ EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$microcode" == "need" ]; then
|
if [ "$microcode" == "need" ]; then
|
||||||
CHOICE=$(whiptail --title "INTEL MICROCODE" --menu "\nMicrocode updates can fix hardware bugs, improve performance, and enhance security features of the processor.\n\nInstall the Intel Microcode now?" 16 58 2 \
|
CHOICE=$(whiptail --title "INTEL MICROCODE" --menu "\nMicrocode updates can fix hardware bugs, improve performance, and enhance security features of the processor.\n\nInstall the Intel Microcode now?" 16 58 2 \
|
||||||
|
|
Loading…
Reference in New Issue