post_install() { echo -n "Generating grub.cfg.example config file... " grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null echo "done." cat << EOF An example config file is created at /boot/grug/grub.cfg.example EOF } post_upgrade() { post_install }