Regenerating initramfs on remove.
authorDaniel Baumann <daniel@debian.org>
Fri, 24 Aug 2012 10:29:08 +0000 (12:29 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 24 Aug 2012 10:29:08 +0000 (12:29 +0200)
debian/live-boot-initramfs-tools.postrm [new file with mode: 0644]

diff --git a/debian/live-boot-initramfs-tools.postrm b/debian/live-boot-initramfs-tools.postrm
new file mode 100644 (file)
index 0000000..370b6c3
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+       remove)
+               if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]
+               then
+                       update-initramfs -u
+               fi
+               ;;
+
+       purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+               ;;
+
+       *)
+               echo "postrm called with unknown argument \`${1}'" >&2
+               exit 1
+               ;;
+esac
+
+#DEBHELPER#
+
+exit 0