Update pika-nvidia-config/debian/postinst
This commit is contained in:
parent
7ba3fda8e3
commit
ba9081b86e
@ -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
|
Loading…
Reference in New Issue
Block a user