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,7 +50,12 @@ 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
then then
if cat /etc/booster.yaml | grep -i 'nvidia'
then
true
else
echo 'modules_force_load: nvidia' >> /etc/booster.yaml echo 'modules_force_load: nvidia' >> /etc/booster.yaml
fi
fi fi
cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs