PREUN
/bin/sh
# Only if uninstalling if [ $1 -eq 0 ]; then rm -rf /boot/grub2/i386-efi rm -rf /boot/grub2/locale fi
POSTIN
/bin/sh
if [[ ! -e /boot/efi && -e /boot/EFI ]]; then ln -fs EFI /boot/efi fi if [ $1 -eq 2 ]; then touch /boot/grub2/updtrans fi