diff options
Diffstat (limited to 'sys-fs/cryptsetup/files/1.0.5-dmcrypt.rc')
-rw-r--r-- | sys-fs/cryptsetup/files/1.0.5-dmcrypt.rc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-fs/cryptsetup/files/1.0.5-dmcrypt.rc b/sys-fs/cryptsetup/files/1.0.5-dmcrypt.rc new file mode 100644 index 000000000000..a861a4f80d2d --- /dev/null +++ b/sys-fs/cryptsetup/files/1.0.5-dmcrypt.rc @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/files/1.0.5-dmcrypt.rc,v 1.1 2007/08/14 16:05:16 strerror Exp $ + +depend() { + before checkfs +} + +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 + + . /lib/rcscripts/addons/dm-crypt-start.sh +} + +stop() { + if [ ! -e /lib/librc.so ]; then + return 0 + fi + + . /lib/rcscripts/addons/dm-crypt-stop.sh +} + |