Update pika-nvidia-config/debian/postinst

This commit is contained in:
ferreo 2024-10-29 23:13:42 +01:00
parent 7ba3fda8e3
commit ba9081b86e

View File

@ -13,6 +13,17 @@ then
sed -i "s#root=#nvidia-drm.modeset=1 root=#" /boot/refind_linux.conf sed -i "s#root=#nvidia-drm.modeset=1 root=#" /boot/refind_linux.conf
fi fi
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 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." 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 fi