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.5.5-r11 (-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-2.5.5-r11,v 1.1 2010/01/24 21:13:01 williamh Exp $
4
# $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 $
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 checkfs fsck
15
		before checkfs fsck
Lines 13-19 Link Here
13
}
18
}
14
19
15
start() {
20
start() {
16
	if [ ! -e /lib/librc.so ]; then
21
	if ! is_openrc; then
17
		eerror "The ${SVCNAME} init script is written for baselayout-2"
22
		eerror "The ${SVCNAME} init script is written for baselayout-2"
18
		eerror "Please do not use it with baselayout-1"
23
		eerror "Please do not use it with baselayout-1"
19
		return 1
24
		return 1

Return to bug 273138