mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 08:33:17 +01:00
parent
adb7bc55f4
commit
ace4a8e43f
@ -595,18 +595,20 @@ EOF
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ "$APP" == "Channels" || "$APP" == "Emby" || "$APP" == "Frigate" || "$APP" == "Jellyfin" || "$APP" == "Plex" || "$APP" == "Scrypted" || "$APP" == "Tdarr" || "$APP" == "Unmanic" ]]; then
|
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 <<EOF >>$LXC_CONFIG
|
cat <<EOF >>$LXC_CONFIG
|
||||||
# VAAPI hardware transcoding
|
# VAAPI hardware transcoding
|
||||||
dev0: /dev/dri/card0,gid=44
|
dev0: /dev/dri/card0,gid=44
|
||||||
dev1: /dev/dri/renderD128,gid=104
|
dev1: /dev/dri/renderD128,gid=104
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat <<EOF >>$LXC_CONFIG
|
cat <<EOF >>$LXC_CONFIG
|
||||||
# VAAPI hardware transcoding
|
# VAAPI hardware transcoding
|
||||||
dev0: /dev/dri/card1,gid=44
|
dev0: /dev/dri/card1,gid=44
|
||||||
dev1: /dev/dri/renderD128,gid=104
|
dev1: /dev/dri/renderD128,gid=104
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user