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.sh12
1 files changed, 12 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..e29dbccc
--- /dev/null
+++ b/src/Setup/FreeBSD/veracrypt-uninstall.sh
@@ -0,0 +1,12 @@
+#!/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
+rm -fr /usr/share/doc/veracrypt
+
+echo VeraCrypt uninstalled.
+rm -f /usr/bin/veracrypt-uninstall.sh