Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273138 | Differences between
and this patch

Collapse All | Expand All

(-)evms.initd (-2 / +7 lines)
Lines 3-10 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/files/evms.initd,v 1.3 2008/02/01 13:02:23 flameeyes Exp $
4
# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/files/evms.initd,v 1.3 2008/02/01 13:02:23 flameeyes Exp $
5
5
6
# Check for OpenRC/Baselayout 2 - see bug #270646
7
is_openrc() {
8
    [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]
9
}
10
6
depend() {
11
depend() {
7
	if [ -e /lib/librc.so ]; then
12
	if is_openrc; then
8
		# on baselayout-1 this causes
13
		# on baselayout-1 this causes
9
		# a dependency loop with checkroot (before *)
14
		# a dependency loop with checkroot (before *)
10
		before checkroot root
15
		before checkroot root
Lines 12-18 Link Here
12
}
17
}
13
18
14
start() {
19
start() {
15
	if [ ! -e /lib/librc.so ]; then
20
	if ! is_openrc; then
16
		eerror "The ${SVCNAME} init script is written for baselayout-2"
21
		eerror "The ${SVCNAME} init script is written for baselayout-2"
17
		eerror "Please do not use it with baselayout-1"
22
		eerror "Please do not use it with baselayout-1"
18
		return 1
23
		return 1

Return to bug 273138