Support custom boopoptions through /etc/default/grml-rescueboot.
[grml-rescueboot.git] / debian / postinst
1 #!/bin/sh
2 # postinst script for grml-rescueboot
3
4 set -e
5
6 case "$1" in
7     configure)
8       if ls /boot/grml/*iso >/dev/null 2>&1 ; then
9         echo "ISOs found inside /boot/grml, invoking update-grub:"
10         update-grub
11       else
12         echo "No *.iso files found inside /boot/grml/. Please create /boot/grml and"
13         echo "place Grml ISO(s) there. Finally invoke update-grub and enjoy your rescue system."
14       fi
15     ;;
16
17     abort-upgrade|abort-remove|abort-deconfigure)
18     ;;
19
20     *)
21         echo "postinst called with unknown argument \`$1'" >&2
22         exit 1
23     ;;
24 esac
25
26 #DEBHELPER#
27
28 exit 0