Update postinst
This commit is contained in:
parent
3a1573839e
commit
1f296c4847
7
debian/postinst
vendored
7
debian/postinst
vendored
@ -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
|
||||||
echo 'modules_force_load: nvidia' >> /etc/booster.yaml
|
if cat /etc/booster.yaml | grep -i 'nvidia'
|
||||||
|
then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user