diff --git a/pika-nvidia-config/debian/postinst b/pika-nvidia-config/debian/postinst index 4dfcf7d..2829d79 100644 --- a/pika-nvidia-config/debian/postinst +++ b/pika-nvidia-config/debian/postinst @@ -13,6 +13,17 @@ then sed -i "s#root=#nvidia-drm.modeset=1 root=#" /boot/refind_linux.conf fi fi + if cat /boot/refind_linux.conf | grep -i 'nvidia-drm.fbdev=1' > /dev/null 2>&1 + then + true + else + if cat /boot/refind_linux.conf | grep -i 'nvidia-drm.fbdev=0' > /dev/null 2>&1 + then + sed -i "s#nvidia-drm.fbdev=0#nvidia-drm.fbdev=1" /boot/refind_linux.conf + else + sed -i "s#root=#nvidia-drm.fbdev=1 root=#" /boot/refind_linux.conf + fi + fi else echo "Warning: You seem to not be using refind as a boot manager as PikaOS normally does, so make sure to add nvidia-drm.modeset=1 to your linux cmd if you have an nvidia card." fi \ No newline at end of file