Update build.func

This commit is contained in:
CanbiZ 2025-07-03 10:51:24 +02:00
parent b25aea86a0
commit c451629a09

View File

@ -1245,7 +1245,8 @@ EOF
fi
done
if [ "$CT_TYPE" == "0" ] || [ "$is_vaapi_app" == "true" ]; then
if ([ "$CT_TYPE" == "0" ] || [ "$is_vaapi_app" == "true" ]) &&
([[ -e /dev/dri/renderD128 ]] || [[ -e /dev/dri/card0 ]] || [[ -e /dev/fb0 ]]); then
echo -e "\n⚙ VAAPI passthrough configuration for LXC container:"
if [ "$CT_TYPE" != "0" ]; then