|
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-r9,v 1.2 2008/02/01 13:02:23 flameeyes Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/files/evms.initd-2.5.5-r9,v 1.2 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 checkfs fsck |
15 |
before checkfs fsck |
|
Lines 13-23
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 |
| 20 |
fi |
25 |
fi |
| 21 |
|
26 |
|
| 22 |
start_addon evms |
27 |
start_addon evms |
| 23 |
} |
28 |
} |