You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/veracrypt/files/veracrypt.init

18 lines
384 B

#!/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
}