From 16a37644bb5db06b3cbdd5c0f77609232ac9dcd7 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 21 Dec 2023 17:37:36 -0500 Subject: [PATCH] Update hw-acceleration.sh - Requires PVE Version 8.0 or higher --- misc/hw-acceleration.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/hw-acceleration.sh b/misc/hw-acceleration.sh index 8c9d03dc..8772aba8 100644 --- a/misc/hw-acceleration.sh +++ b/misc/hw-acceleration.sh @@ -39,6 +39,14 @@ function msg_ok() { echo -e "${BFR} ${CM} ${GN}${msg}${CL}" } +if ! pveversion | grep -Eq "pve-manager/(8\.[0-9])"; then + msg_error "This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 8.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi + whiptail --backtitle "Proxmox VE Helper Scripts" --title "Add Intel HW Acceleration" --yesno "This Will Add Intel HW Acceleration to an existing LXC Container. Proceed?" 8 72 || exit NODE=$(hostname) PREV_MENU=()