VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Build/Packaging/rpm-control/prerm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Build/Packaging/rpm-control/prerm.sh')
-rw-r--r--src/Build/Packaging/rpm-control/prerm.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Build/Packaging/rpm-control/prerm.sh b/src/Build/Packaging/rpm-control/prerm.sh
new file mode 100644
index 0000000..d2e3894
--- /dev/null
+++ b/src/Build/Packaging/rpm-control/prerm.sh
@@ -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." >&2
+ exit 1
+else
+ exit 0
+fi \ No newline at end of file