summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-initramfs-hook
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-05-18 18:35:28 +0000
committerNiels Thykier <niels@thykier.net>2018-05-18 18:35:59 +0000
commit41f1ca9ed464300f5a84c9aebbf699e8b0e77928 (patch)
treee56c7af24d7a25816f8ff5d7c6a7924807e4c794 /autoscripts/postrm-initramfs-hook
parent3533ce28a8770f824e6fcaf7a2ed3c0b0b7a9406 (diff)
downloaddebhelper-41f1ca9ed464300f5a84c9aebbf699e8b0e77928.tar.gz
dh_installinitramfs: New helper tool
Diffstat (limited to 'autoscripts/postrm-initramfs-hook')
-rw-r--r--autoscripts/postrm-initramfs-hook5
1 files changed, 5 insertions, 0 deletions
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