summaryrefslogtreecommitdiff
path: root/veracrypt/debian/prerm
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-01-30 15:40:06 -0500
committerB Stack <bgstack15@gmail.com>2019-01-30 15:40:06 -0500
commite9120a776ff758709db504702eb3a44940bdd26e (patch)
tree7eaa53b9b4c888038696252b49d535f1e1deec6b /veracrypt/debian/prerm
parentadd palemoon dpkg for devuan (diff)
downloadstackrpms-e9120a776ff758709db504702eb3a44940bdd26e.tar.gz
stackrpms-e9120a776ff758709db504702eb3a44940bdd26e.tar.bz2
stackrpms-e9120a776ff758709db504702eb3a44940bdd26e.zip
add veracrypt dpkg first draft
Diffstat (limited to 'veracrypt/debian/prerm')
-rw-r--r--veracrypt/debian/prerm20
1 files changed, 20 insertions, 0 deletions
diff --git a/veracrypt/debian/prerm b/veracrypt/debian/prerm
new file mode 100644
index 0000000..baa2e73
--- /dev/null
+++ b/veracrypt/debian/prerm
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove|upgrade|deconfigure|failed-upgrade)
+ (mount | grep -q veracrypt_aux_mnt) &&
+ echo "Error: all VeraCrypt volumes must be unmounted before upgrade." && exit 1
+ exit 0
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
bgstack15