diff options
Diffstat (limited to 'src/Build/Packaging')
-rw-r--r-- | src/Build/Packaging/debian-control/prerm | 9 | ||||
-rw-r--r-- | src/Build/Packaging/rpm-control/prerm.sh | 9 |
2 files changed, 18 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 diff --git a/src/Build/Packaging/rpm-control/prerm.sh b/src/Build/Packaging/rpm-control/prerm.sh new file mode 100644 index 00000000..e9deafc3 --- /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." + exit 1 +else + exit 0 +fi
\ No newline at end of file |