Update display.sh

This commit is contained in:
Kroese
2026-09-02 21:45:05 +02:00
committed by GitHub
parent 690b66a615
commit 17eb55bc0c
+4 -5
View File
@@ -325,12 +325,8 @@ msg="Configuring display drivers..."
enabled "$DEBUG" && echo "$msg" enabled "$DEBUG" && echo "$msg"
if [[ "$ARCH" != "amd64" ]]; then if [[ "$ARCH" != "amd64" ]]; then
if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then
gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform" gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform"
fi fi
gpuSetupFailure "GPU acceleration is only supported for the AMD64 platform"
return 0
fi
if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then if [[ "${VGA_DEVICE,,}" == "vmware-svga" ]]; then
vmwareGpuSetup vmwareGpuSetup
@@ -719,7 +715,10 @@ nvidiaVulkanReady() {
return 1 return 1
fi fi
[[ "$NVIDIA_DRIVER_VERSION" =~ ^([0-9]+)\.([0-9]+) ]] || return 1 if ! [[ "$NVIDIA_DRIVER_VERSION" =~ ^([0-9]+)\.([0-9]+) ]]; then
NVIDIA_REASON="the NVIDIA driver version '$NVIDIA_DRIVER_VERSION' could not be parsed"
return 1
fi
major="${BASH_REMATCH[1]}" major="${BASH_REMATCH[1]}"
minor="${BASH_REMATCH[2]}" minor="${BASH_REMATCH[2]}"