From 41f1ca9ed464300f5a84c9aebbf699e8b0e77928 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Fri, 18 May 2018 18:35:28 +0000 Subject: dh_installinitramfs: New helper tool --- autoscripts/postinst-initramfs-hook | 5 +++++ autoscripts/postrm-initramfs-hook | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 autoscripts/postinst-initramfs-hook create mode 100644 autoscripts/postrm-initramfs-hook (limited to 'autoscripts') diff --git a/autoscripts/postinst-initramfs-hook b/autoscripts/postinst-initramfs-hook new file mode 100644 index 00000000..7785c643 --- /dev/null +++ b/autoscripts/postinst-initramfs-hook @@ -0,0 +1,5 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]; then + update-initramfs -u + fi +fi diff --git a/autoscripts/postrm-initramfs-hook b/autoscripts/postrm-initramfs-hook new file mode 100644 index 00000000..9f688943 --- /dev/null +++ b/autoscripts/postrm-initramfs-hook @@ -0,0 +1,5 @@ +if [ "$1" = "remove" ]; then + if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]; then + update-initramfs -u + fi +fi -- cgit v1.2.3