--- evms.initd-2.5.5-r9 2010-01-25 15:18:36.000000000 -0500 +++ evms.initd-2.5.5-r9.new 2010-01-25 15:20:49.000000000 -0500 @@ -3,8 +3,13 @@ # 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-r9,v 1.2 2008/02/01 13:02:23 flameeyes Exp $ +# Check for OpenRC/Baselayout 2 - see bug #270646 +is_openrc() { + [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ] +} + depend() { - if [ -e /lib/librc.so ]; then + if is_openrc; then # on baselayout-1 this causes # a dependency loop with checkroot (before *) before checkfs fsck @@ -13,11 +18,11 @@ } start() { - if [ ! -e /lib/librc.so ]; then + if ! is_openrc; then eerror "The ${SVCNAME} init script is written for baselayout-2" eerror "Please do not use it with baselayout-1" return 1 fi start_addon evms -} +} \ No newline at end of file