Skip to content

Commit

Permalink
Regenerating initramfs on remove.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Aug 24, 2012
1 parent b75baa7 commit 876ee0a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions debian/live-boot-initramfs-tools.postrm
@@ -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

0 comments on commit 876ee0a

Please sign in to comment.