Files
snigdhaos-pkgbuilds/snigdhaos-core/source/snigdhaos-grub-theme/snigdhaos-grub-theme.install
CELESTIFYX 08abac9e7d
Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run
Refactoring repository...
2025-01-14 19:02:06 +02:00

29 lines
786 B
Plaintext

post_install() {
sed -i -e 's,.*GRUB_THEME=.*,GRUB_THEME="/usr/share/grub/themes/snigdhaos-grub-theme/theme.txt",' /etc/default/grub
sed -i -e 's,.*GRUB_GFXMODE=.*,GRUB_GFXMODE=auto,' /etc/default/grub
sed -i -e 's,.*GRUB_DISTRIBUTOR=.*,GRUB_DISTRIBUTOR="Snigdha",' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
cat <<_EOF
==> Installation: Theme is added to your /etc/default/grub: GRUB_THEME="/usr/share/grub/themes/snigdhaos-grub-theme/theme.txt"
==> Default resolution "auto"
_EOF
}
post_upgrade() {
post_install
}
post_remove() {
cat <<_EOF
==> IMPORTANT: Edit /boot/grub/grub.cfg , remove
==> set theme="/boot/grub/themes/snigdhaos-grub-theme/theme.txt"
==> and uncomment an existing one / default!
==> (Maybe without "/boot", depending on PC setup)
_EOF
}