From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MDea9-00031k-Du for garchives@archives.gentoo.org; Mon, 08 Jun 2009 13:08:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59AE3E032F; Mon, 8 Jun 2009 13:08:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B470E032F for ; Mon, 8 Jun 2009 13:08:08 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id CA8E064C7E; Mon, 8 Jun 2009 13:08:07 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646) Date: Mon, 8 Jun 2009 09:08:05 -0400 User-Agent: KMail/1.11.3 (Linux/2.6.29.4; KDE/4.2.3; x86_64; ; ) Cc: Roy Marples References: <20090607195950.GI22927@orbis-terrarum.net> <200906080816.01872.vapier@gentoo.org> <4A2D0BBA.2010207@marples.name> In-Reply-To: <4A2D0BBA.2010207@marples.name> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906080908.06765.vapier@gentoo.org> X-Archives-Salt: bd6179c8-bf01-4a3d-a7a2-bef091fc36d1 X-Archives-Hash: 7c57f714280080a58c7637a1c77efc54 On Monday 08 June 2009 09:01:46 Roy Marples wrote: > Mike Frysinger wrote: > > i didnt see any real discussion of /sbin/functions.sh ... i dont recall > > there being a reason historically for not checking for this file to > > detect baselayout-1 vs openrc, and no one has complained about its usage > > in mdadm ... > > That works as a baselayout-1 vs openrc test. > However, there was, or will be, a need to detect OpenRC version as well > which that doesn't address. I don't know if that is needed right now > though. if openrc versions are causing a level of incompatibility, then it should itself be setting up an env var for init.d scripts to key off of rather than having to figure out what's going on via the filesystem. the point of this thread is to detect baselayout-1 vs openrc only. -mike