Update nvidia-vaapi-env.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-10-12 19:48:20 +03:00 committed by GitHub
parent fbbd3098c1
commit a46fc8ffd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# Check system for NVIDIA card and set vaapi env vars # Check system for NVIDIA card and set vaapi env vars
nvkernmod=$(lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia) nvkernmod=$(lspci -nnkk | grep -A3 '\[03' | grep 'Kernel modules:' | grep -i nvidia)
if [[ ! -z $nvkernmod ]] if [[ ! -z $nvkernmod ]]
then then