summaryrefslogtreecommitdiff
path: root/debian/bcachefs-tools.postrm
diff options
context:
space:
mode:
authorTim Schlueter <schlueter.tim@linux.com>2019-01-13 14:23:55 -0800
committerTim Schlueter <schlueter.tim@linux.com>2019-01-13 18:53:37 -0800
commite64e781bf1fea2f0baecedc44fd390fc5ce5ad59 (patch)
tree5427201bf90456602db35c87c716a86512ad1011 /debian/bcachefs-tools.postrm
parent47bd483d27ec13418978b24ec5951661d564ba35 (diff)
Update initramfs after .deb install or uninstall
Also removed the unnecessary debian/bcachefs-tools.dirs file
Diffstat (limited to 'debian/bcachefs-tools.postrm')
-rw-r--r--debian/bcachefs-tools.postrm12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/bcachefs-tools.postrm b/debian/bcachefs-tools.postrm
new file mode 100644
index 00000000..6b6fe8ac
--- /dev/null
+++ b/debian/bcachefs-tools.postrm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ if which update-initramfs >/dev/null; then
+ update-initramfs -u
+ fi
+ ;;
+esac
+