mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "7eba5494eaadec7fecf7e1c73d0643fc0411aff4" and "5bf0944dd986919908736ef780b8bfead8c01b2d" have entirely different histories.
7eba5494ea
...
5bf0944dd9
|
@ -86,13 +86,15 @@ amd() {
|
|||
echo -e "\n To apply the changes, the system will need to be rebooted.\n"
|
||||
}
|
||||
|
||||
if ! command -v pveversion >/dev/null 2>&1; then
|
||||
header_info
|
||||
msg_error "\n No PVE Detected!\n"
|
||||
if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then
|
||||
echo -e "${CROSS} Proxmox Virtual Environment Not Detected"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
fi
|
||||
|
||||
msg_info "Checking CPU Vendor"
|
||||
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+' | head -n 1)
|
||||
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
|
||||
if [ "$cpu" == "GenuineIntel" ]; then
|
||||
msg_ok "${cpu} was detected"
|
||||
intel
|
||||
|
|
Loading…
Reference in New Issue