mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 15:31:59 +00:00
Update post-pve-install.sh
Code refactoring
This commit is contained in:
parent
f2c54ba6de
commit
c7796d0fd2
@ -142,9 +142,7 @@ EOF
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
microcode=""
|
microcode=""
|
||||||
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
|
if lscpu | grep -qP 'Vendor ID:.*GenuineIntel' && lscpu | grep -qP 'Model name:.*N'; then
|
||||||
if [ "$cpu" == "GenuineIntel" ]; 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 \
|
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)
|
||||||
@ -159,7 +157,6 @@ EOF
|
|||||||
msg_error "Selected no to Installing the Proxmox 6.2 kernel"
|
msg_error "Selected no to Installing the Proxmox 6.2 kernel"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$microcode" == "need" ]; then
|
if [ "$microcode" == "need" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user