mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 15:31:59 +00:00
Update microcode.sh
PVE8 compatible
This commit is contained in:
parent
5bf0944dd9
commit
bfd5194118
@ -86,13 +86,11 @@ amd() {
|
|||||||
echo -e "\n To apply the changes, the system will need to be rebooted.\n"
|
echo -e "\n To apply the changes, the system will need to be rebooted.\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then
|
if ! command -v pveversion >/dev/null 2>&1; then
|
||||||
echo -e "${CROSS} Proxmox Virtual Environment Not Detected"
|
header_info
|
||||||
echo -e "Exiting..."
|
msg_error "\n No PVE Detected!\n"
|
||||||
sleep 2
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Checking CPU Vendor"
|
msg_info "Checking CPU Vendor"
|
||||||
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
|
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
|
||||||
if [ "$cpu" == "GenuineIntel" ]; then
|
if [ "$cpu" == "GenuineIntel" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user