Update booster.postinst
This commit is contained in:
parent
4a143ed46f
commit
45d45c02ac
11
debian/booster.postinst
vendored
11
debian/booster.postinst
vendored
@ -24,6 +24,17 @@ then
|
||||
fi
|
||||
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 && lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i -E 'kernel modules|kernel driver' | grep -i nvidia
|
||||
then
|
||||
if cat /boot/refind_linux.conf | grep -i 'rd.modules_force_load'
|
||||
then
|
||||
true
|
||||
else
|
||||
sed -i "s#root=#rd.modules_force_load=nvidia,usbhid root=#" /boot/refind_linux.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs
|
||||
chmod +x /usr/sbin/update-initramfs
|
||||
update-initramfs -c -k all
|
||||
|
Loading…
Reference in New Issue
Block a user