post_install() { echo -e "You can use command \033[4mmemtest86-efi --install\033[0m as root to install MemTest86 in your ESP." } pre_upgrade() { if [[ $(vercmp "$2" "1:9.4build1000-4") -lt 0 ]]; then rm /usr/share/libalpm/hooks/memtest86-efi-remove.hook echo "Updating /etc/memtest86-efi/memtest86-efi.conf..." echo -e "\033[4mCurrent file:\033[0m" grep -v '^\s*$\|^\s*\#' /etc/memtest86-efi/memtest86-efi.conf source /etc/memtest86-efi/memtest86-efi.conf if [[ $install == 0 ]]; then cat > /etc/memtest86-efi/memtest86-efi.conf <