VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup/FreeBSD/veracrypt-uninstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Setup/FreeBSD/veracrypt-uninstall.sh')
-rw-r--r--src/Setup/FreeBSD/veracrypt-uninstall.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Setup/FreeBSD/veracrypt-uninstall.sh b/src/Setup/FreeBSD/veracrypt-uninstall.sh
new file mode 100644
index 00000000..f8f111e2
--- /dev/null
+++ b/src/Setup/FreeBSD/veracrypt-uninstall.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+V="$(mount | grep veracrypt_aux_mnt)"
+[ "$V" ] && echo Error: All volumes must be dismounted first. && exit 1
+
+rm -f /usr/bin/veracrypt
+rm -f /usr/share/applications/veracrypt.desktop
+rm -f /usr/share/pixmaps/veracrypt.xpm
+rm -fr /usr/share/veracrypt
+
+echo VeraCrypt uninstalled.
+rm -f /usr/bin/veracrypt-uninstall.sh