VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Build/Packaging/rpm-control
diff options
context:
space:
mode:
Diffstat (limited to 'src/Build/Packaging/rpm-control')
-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 00000000..d2e3894e
--- /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