Update postinst

This commit is contained in:
ferrreo 2023-09-01 16:21:41 +01:00 committed by GitHub
parent 3a1573839e
commit 1f296c4847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
debian/postinst vendored
View File

@ -50,8 +50,13 @@ fi
# Add nvidia support if an nvidia card is detected
if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia
then
if cat /etc/booster.yaml | grep -i 'nvidia'
then
true
else
echo 'modules_force_load: nvidia' >> /etc/booster.yaml
fi
fi
cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs
chmod +x /usr/sbin/update-initramfs