summarylogtreecommitdiffstats
path: root/grub-themes.install
blob: 3f416926539e72fbeb4bd6dac78435cd1d9c021a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {

  sed -i -e 's,.*GRUB_THEME=.*,GRUB_THEME="/usr/share/grub/themes/midna/theme.txt",' /etc/default/grub
  sed -i -e 's,.*GRUB_GFXMODE=.*,GRUB_GFXMODE=1024x768,' /etc/default/grub
 
  cat << _EOF 

==> Installation: Theme is added to your /etc/default/grub: GRUB_THEME="/usr/share/grub/themes/midna/theme.txt"
==> Update grub:# grub-mkconfig -o /boot/grub/grub.cfg
==> to activate it

_EOF
}

post_upgrade() {

    if [ ! -f /boot/loader/loader.conf ] && ! grep -q NotoSans-Bold-14.pf2 /boot/grub/grub.cfg; then
      grub-mkconfig -o /boot/grub/grub.cfg
    fi
  
}