Compare commits

..

2 Commits

Author SHA1 Message Date
tteckster 7eba5494ea
Update microcode.sh
tweak
2023-06-20 16:08:58 -04:00
tteckster bfd5194118
Update microcode.sh
PVE8 compatible
2023-06-20 15:54:38 -04:00
1 changed files with 4 additions and 6 deletions

View File

@ -86,15 +86,13 @@ 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+' | head -n 1)
if [ "$cpu" == "GenuineIntel" ]; then if [ "$cpu" == "GenuineIntel" ]; then
msg_ok "${cpu} was detected" msg_ok "${cpu} was detected"
intel intel