summaryrefslogtreecommitdiffstats
path: root/app-crypt/truecrypt/files/truecrypt.init
blob: 2d861f66e47defb3868a7382d5465cbda82eba64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/files/truecrypt.init,v 1.1 2010/12/15 20:59:11 c1pher Exp $

depend() {
	after localmount
	if [ -e /lib/librc.so ]; then
		need device-mapper
	fi
}

start() {
	if [ ! -e /lib/librc.so ]; then
		eerror "The ${myservice} init script is written for baselayout-2"
		eerror "Please do not use it with baselayout-1"
		return 1
	fi
}

stop() {
	if [ ! -e /lib/librc.so ]; then
		eerror "The ${myservice} init script is written for baselayout-2"
		eerror "Please do not use it with baselayout-1"
		return 1
	fi

	. /lib/rcscripts/addons/truecrypt-stop.sh
}