X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpostinst;h=eb3a28dcf5d31448ce6b6e3075aaca63f6d332d4;hb=199476a3ee4fb6e6e4e71f719c9f29f5fa93cf5d;hp=29a15d8423a4c4ab4c762040856a090f8a43929c;hpb=8ca6f9e98d432107ca81032a4cdc65d7cb56e55f;p=grml-rescueboot.git diff --git a/debian/postinst b/debian/postinst index 29a15d8..eb3a28d 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,26 +1,21 @@ #!/bin/sh # postinst script for grml-rescueboot -# -# see: dh_installdeb(1) set -e -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - case "$1" in configure) - update-grub + if ls /boot/grml/*iso >/dev/null 2>&1 ; then + if which update-grub >/dev/null 2>&1; then + echo "ISOs found inside /boot/grml, invoking update-grub:" + update-grub + else + echo "WARN: ISOs found inside /boot/grml but update-grub not present (huh?)" + fi + else + echo "No *.iso files found inside /boot/grml/. Please create /boot/grml and" + echo "place Grml ISO(s) there. Finally invoke update-grub and enjoy your rescue system." + fi ;; abort-upgrade|abort-remove|abort-deconfigure) @@ -32,9 +27,6 @@ case "$1" in ;; esac -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - #DEBHELPER# exit 0