Update postinst

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-09-01 21:11:59 +03:00 committed by GitHub
parent 4a76ce4024
commit a28d63c4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
debian/postinst vendored
View File

@ -26,7 +26,7 @@ fi
# Add nvidia support if an nvidia card is detected # Add nvidia support if an nvidia card is detected
if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia && lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i -E 'kernel modules|kernel driver' | grep -i nvidia
then then
if cat /etc/booster.yaml | grep -i 'nvidia' if cat /etc/booster.yaml | grep -i 'nvidia'
then then