VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Build/Packaging/debian-control
diff options
context:
space:
mode:
Diffstat (limited to 'src/Build/Packaging/debian-control')
-rw-r--r--src/Build/Packaging/debian-control/prerm9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Build/Packaging/debian-control/prerm b/src/Build/Packaging/debian-control/prerm
new file mode 100644
index 00000000..e9deafc3
--- /dev/null
+++ b/src/Build/Packaging/debian-control/prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+V="$(mount | grep veracrypt_aux_mnt)"
+if [ ! -z "$V" ]
+then
+ echo "Error: All VeraCrypt volumes must be dismounted first."
+ exit 1
+else
+ exit 0
+fi \ No newline at end of file