chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

post-upgrade (360B)


      1 #!/bin/sh
      2 # the boot menu uses the theme, unless someone picked another one. the menu is made again on installed systems
      3 g=/etc/default/grub
      4 if [ -f $g ] && ! grep -q '^GRUB_THEME=' $g; then
      5     echo 'GRUB_THEME="/usr/share/grub/themes/chamesle/theme.txt"' >> $g
      6     [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1
      7 fi
      8 exit 0