X-Git-Url: https://git.grml.org/?p=grml-rescueboot.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=6442637d29755a0237dcc4cd5d0e3111feb650dd;hp=0000000000000000000000000000000000000000;hb=39cb619b74bd0dbd2c4a038699ad181cd1fd53ca;hpb=712a0727190ebb8dcbdaf706e28ad450fb602b10 diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..6442637 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,40 @@ +#!/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) + /usr/sbin/update-grub + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0