Releasing debian version 1.177.1-1.
[live-boot-grml.git] / debian / live-initramfs.postinst
index 752b161..2bae8ae 100644 (file)
@@ -1,8 +1,25 @@
 #!/bin/sh
 
-if [ -x /usr/sbin/update-initramfs ]
-then
-       update-initramfs -k all -u
-fi
+set -e
+
+case "${1}" in
+       configure)
+               if [ -x /usr/sbin/update-initramfs ]
+               then
+                       update-initramfs -u
+               fi
+               ;;
+
+       abort-upgrade|abort-remove|abort-deconfigure)
+
+               ;;
+
+       *)
+               echo "postinst called with unknown argument \`${1}'" >&2
+               exit 1
+               ;;
+esac
 
 #DEBHELPER#
+
+exit 0