2 # postinst script for grml-rescueboot
8 # default, unless configured otherwise:
9 ISO_LOCATION=/boot/grml
11 if [ -r /etc/default/grml-rescueboot ] ; then
12 . /etc/default/grml-rescueboot
15 if ! ls "${ISO_LOCATION}"/*iso >/dev/null 2>&1 ; then
16 echo "INFO: No *.iso files found inside ${ISO_LOCATION}."
17 echo "INFO: Please create ${ISO_LOCATION} and place rescue ISO(s) there."
18 echo "INFO: Finally invoke update-grub and enjoy your rescue system."
20 if ! which update-grub >/dev/null 2>&1; then
21 echo "WARN: ISOs found inside ${ISO_LOCATION} but update-grub not present (huh?)"
23 echo "INFO: ISOs found inside ${ISO_LOCATION}, invoking update-grub:"
29 abort-upgrade|abort-remove|abort-deconfigure)
33 echo "postinst called with unknown argument \`$1'" >&2