summaryrefslogtreecommitdiffstats
path: root/debian/cryptsetup-nuke-password.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/cryptsetup-nuke-password.postrm')
-rw-r--r--debian/cryptsetup-nuke-password.postrm13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/cryptsetup-nuke-password.postrm b/debian/cryptsetup-nuke-password.postrm
new file mode 100644
index 0000000..f6d4956
--- /dev/null
+++ b/debian/cryptsetup-nuke-password.postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+ dpkg-divert --rename --package cryptsetup-nuke-password \
+ --divert /lib/cryptsetup/askpass.cryptsetup \
+ --remove /lib/cryptsetup/askpass
+elif [ "$1" = "purge" ]; then
+ rm -rf /etc/cryptsetup-nuke-password
+fi
+
+#DEBHELPER#