Remove obsolete fix

This commit is contained in:
Manuel Thalmann 2024-10-27 14:17:16 +01:00
parent be8d0438ef
commit d415db77f6

View file

@ -4,9 +4,6 @@ begin
source "$dir/../../Scripts/software.fish" source "$dir/../../Scripts/software.fish"
function configureSW -V dir function configureSW -V dir
set -l indicator "GRUB_CMDLINE_LINUX_DEFAULT=\""
set -l config "nvidia_drm.fbdev=1"
# According to: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks # According to: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
begin begin
printf %s\n \ printf %s\n \
@ -18,16 +15,6 @@ begin
nvidia-suspend.service \ nvidia-suspend.service \
nvidia-hibernate.service \ nvidia-hibernate.service \
nvidia-resume.service nvidia-resume.service
if ! cat /etc/default/grub | grep "$indicator.*$config" >/dev/null
sudo sed -i /etc/default/grub \
-e "/$indicator/{" \
-e "s/\($indicator.*[^ ]\)\(\"\)/\1 \2/" \
-e "s/\($indicator.*\)\(\"\)/\1$config\2/" \
-e "}"
fish "$dir/../grub/main.fish" configure
end
end end
runInstaller $argv runInstaller $argv