Use prepare_grub_to_access_device to provide further menu entry details for GRUB.
[grml-rescueboot.git] / debian / postrm
1 #!/bin/sh
2 # postrm script for grml-rescueboot
3
4 set -e
5
6 case "$1" in
7     purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
8       if which update-grub >/dev/null 2>&1; then
9         echo "Updating grub.cfg to make sure there are no non-existing entries being left."
10         update-grub
11       fi
12     ;;
13
14     *)
15         echo "postrm called with unknown argument \`$1'" >&2
16         exit 1
17     ;;
18 esac
19
20 #DEBHELPER#
21
22 exit 0