summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <sultan@gentoo.org>2020-11-26 13:10:26 +0100
committerStephan Hartmann <sultan@gentoo.org>2020-11-26 13:10:38 +0100
commit61e0635fdcbb067387bf177b3cc39a4f755c7d57 (patch)
tree117b3d5ae51ec99768b8c54e909b45c1cfd31475 /app-crypt/veracrypt
parentnet-im/zoom: Fix dependencies. (diff)
downloadgentoo-61e0635fdcbb067387bf177b3cc39a4f755c7d57.tar.gz
gentoo-61e0635fdcbb067387bf177b3cc39a4f755c7d57.tar.bz2
gentoo-61e0635fdcbb067387bf177b3cc39a4f755c7d57.zip
app-crypt/veracrypt: restore init script
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'app-crypt/veracrypt')
-rw-r--r--app-crypt/veracrypt/files/veracrypt.init17
1 files changed, 17 insertions, 0 deletions
diff --git a/app-crypt/veracrypt/files/veracrypt.init b/app-crypt/veracrypt/files/veracrypt.init
new file mode 100644
index 000000000000..bbf5a97d2b61
--- /dev/null
+++ b/app-crypt/veracrypt/files/veracrypt.init
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after localmount
+ need device-mapper
+}
+
+stop() {
+ # Try to remove any dm-crypt mappings
+ if [ -x /usr/bin/veracrypt ]; then
+ ebegin "Removing veracrypt mappings"
+ ! /usr/bin/veracrypt -l > /dev/null 2>&1 || /usr/bin/veracrypt -d
+ eend $?
+ fi
+}