From ace4a8e43f1d83444a272357125965487cbb79b0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 1 May 2024 14:38:15 -0400 Subject: [PATCH] Update build.func fixes https://github.com/tteck/Proxmox/issues/2894 --- misc/build.func | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index 656dfedb..f58149c1 100644 --- a/misc/build.func +++ b/misc/build.func @@ -595,18 +595,20 @@ EOF fi else if [[ "$APP" == "Channels" || "$APP" == "Emby" || "$APP" == "Frigate" || "$APP" == "Jellyfin" || "$APP" == "Plex" || "$APP" == "Scrypted" || "$APP" == "Tdarr" || "$APP" == "Unmanic" ]]; then - if [[ -e "/dev/dri/card0" ]]; then + if [[ -e "/dev/dri/renderD128" ]]; then + if [[ -e "/dev/dri/card0" ]]; then cat <>$LXC_CONFIG # VAAPI hardware transcoding dev0: /dev/dri/card0,gid=44 dev1: /dev/dri/renderD128,gid=104 EOF - else + else cat <>$LXC_CONFIG # VAAPI hardware transcoding dev0: /dev/dri/card1,gid=44 dev1: /dev/dri/renderD128,gid=104 EOF + fi fi fi fi