summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-07-15 16:30:56 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-07-15 16:30:56 +0900
commiteea89c3bde7bb6fa0949107335ab6bb77e6234bc (patch)
tree905e1011791f70d85298eeebeee6f47cad2bb814
parent01d9edd1f3beae87dda261d0a12ea915d4509c4e (diff)
Init
-rwxr-xr-xpublic/thesiah.sh5
-rwxr-xr-xstatic/thesiah.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 94b56ac..77cc984 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -799,6 +799,11 @@ librewolfsetup || error "Failed to set up librewolf."
putgitrepo "$webrepo" "/home/$name" "$repobranch"
}
+# Make grub fast
+[ -z "$(xrandr | grep '1024x768')" ] && sed -Ei "s/^(GRUB_TIMEOUT=).*/\15/;s/^(GRUB_TIMEOUT_STYLE=).*/\1hidden/" /etc/default/grub || sed -Ei "s/^(GRUB_GFXMODE=).*/\11024x768x8/;s/^(GRUB_TIMEOUT=).*/\15/;s/^(GRUB_TIMEOUT_STYLE=).*/\1hidden/" /etc/default/grub
+
+grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1
+
# Allow wheel users to sudo with password and allow several system commands
# (like `shutdown` to run without password).
addsudo || error "Failed to add $name sudoers."
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 94b56ac..77cc984 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -799,6 +799,11 @@ librewolfsetup || error "Failed to set up librewolf."
putgitrepo "$webrepo" "/home/$name" "$repobranch"
}
+# Make grub fast
+[ -z "$(xrandr | grep '1024x768')" ] && sed -Ei "s/^(GRUB_TIMEOUT=).*/\15/;s/^(GRUB_TIMEOUT_STYLE=).*/\1hidden/" /etc/default/grub || sed -Ei "s/^(GRUB_GFXMODE=).*/\11024x768x8/;s/^(GRUB_TIMEOUT=).*/\15/;s/^(GRUB_TIMEOUT_STYLE=).*/\1hidden/" /etc/default/grub
+
+grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1
+
# Allow wheel users to sudo with password and allow several system commands
# (like `shutdown` to run without password).
addsudo || error "Failed to add $name sudoers."