summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/truecrypt/files/truecrypt-stop.sh')
-rw-r--r--app-crypt/truecrypt/files/truecrypt-stop.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/app-crypt/truecrypt/files/truecrypt-stop.sh b/app-crypt/truecrypt/files/truecrypt-stop.sh
new file mode 100644
index 000000000000..50bb0b749fb0
--- /dev/null
+++ b/app-crypt/truecrypt/files/truecrypt-stop.sh
@@ -0,0 +1,9 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2 or later
+
+# Try to remove any dm-crypt mappings
+if [ -x /usr/bin/truecrypt ]; then
+ ebegin "Removing truecrypt mappings"
+ ! /usr/bin/truecrypt -l > /dev/null 2>&1 || /usr/bin/truecrypt -d
+ eend $?
+fi