summaryrefslogtreecommitdiff
blob: 5d96ac027408de71711de1d0b4fa911ecf7cc200 (plain)
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
#!/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/evms/files/evms.initd-2.5.5-r11,v 1.1 2010/01/24 21:13:01 williamh Exp $

depend() {
	if [ -e /lib/librc.so ]; then
		# on baselayout-1 this causes
		# a dependency loop with checkroot (before *)
		before checkfs fsck
		after modules
	fi
}

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

	if [ -z ${CDBOOT} ] ; then
		ebegin "Activating EVMS"
		evms_activate
		retval=$?
		eend ${retval}
	fi
}