gentoo-overlay/app-crypt/veracrypt/files/veracrypt.init

17 lines
387 B
Text

#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# 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
}