mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-23 00:36:21 +01:00
29 lines
729 B
Text
29 lines
729 B
Text
#!/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
|
|
}
|