Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Roy Marples <roy@×××××××.name>
Subject: Re: [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646)
Date: Mon, 08 Jun 2009 13:08:10
Message-Id: 200906080908.06765.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646) by Roy Marples
1 On Monday 08 June 2009 09:01:46 Roy Marples wrote:
2 > Mike Frysinger wrote:
3 > > i didnt see any real discussion of /sbin/functions.sh ... i dont recall
4 > > there being a reason historically for not checking for this file to
5 > > detect baselayout-1 vs openrc, and no one has complained about its usage
6 > > in mdadm ...
7 >
8 > That works as a baselayout-1 vs openrc test.
9 > However, there was, or will be, a need to detect OpenRC version as well
10 > which that doesn't address. I don't know if that is needed right now
11 > though.
12
13 if openrc versions are causing a level of incompatibility, then it should
14 itself be setting up an env var for init.d scripts to key off of rather than
15 having to figure out what's going on via the filesystem. the point of this
16 thread is to detect baselayout-1 vs openrc only.
17 -mike

Replies