summarylogtreecommitdiffstats
path: root/grub2-theme-archlinux.install
blob: 81c48590c892093b8eecf2832403337669a2b084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
post_install() {
  cat << _EOF

==> Installation:
==> Add theme to your /etc/default/grub: GRUB_THEME="/boot/grub/themes/Archlinux/theme.txt"
==> Preferred resolution 1024x768: GRUB_GFXMODE=1024x768
==> Update grub:# grub-mkconfig -o /boot/grub/grub.cfg

_EOF
}

pre_upgrade() {
  checkver=$(pacman -Qs grub2-theme-archlinux | head -n 1 | awk '{print $2}')
  target=/boot/grub/themes/Archlinux

  if [[ $checkver == "1.0-1" ]]; then
  cat << _EOF

==> Install target changed to /boot/grub/themes/Archlinux
==> No longer needed to copy /usr/share/grub/themes/Archlinux to /boot/grub/themes/

_EOF
    # Not working
    # if [ -d "$target" ]; then
    #    rm -rf /boot/grub/themes/Archlinux
    # fi
  fi
}