summaryrefslogtreecommitdiff
path: root/debian/truecrypt.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/truecrypt.prerm')
-rwxr-xr-xdebian/truecrypt.prerm24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/truecrypt.prerm b/debian/truecrypt.prerm
new file mode 100755
index 0000000..27d12ff
--- /dev/null
+++ b/debian/truecrypt.prerm
@@ -0,0 +1,24 @@
+#!/bin/sh
+# prerm script for truecrypt
+
+set -e
+
+case "$1" in
+ remove|upgrade|deconfigure|failed-upgrade)
+ (mount | grep truecrypt_aux_mnt > /dev/null) &&
+ echo "Error: all TrueCrypt volumes must be unmounted before upgrade." && exit 1
+ exit 0
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0