#!/bin/sh set -e case "$1" in remove) # Update grub if [ -e /boot/grub/grub.cfg ] && [ -x "$(which update-grub)" ]; then update-grub fi ;; esac exit 0