diff options
author | Niels Thykier <niels@thykier.net> | 2018-05-18 18:35:28 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2018-05-18 18:35:59 +0000 |
commit | 41f1ca9ed464300f5a84c9aebbf699e8b0e77928 (patch) | |
tree | e56c7af24d7a25816f8ff5d7c6a7924807e4c794 /autoscripts/postrm-initramfs-hook | |
parent | 3533ce28a8770f824e6fcaf7a2ed3c0b0b7a9406 (diff) | |
download | debhelper-41f1ca9ed464300f5a84c9aebbf699e8b0e77928.tar.gz |
dh_installinitramfs: New helper tool
Diffstat (limited to 'autoscripts/postrm-initramfs-hook')
-rw-r--r-- | autoscripts/postrm-initramfs-hook | 5 |
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 |