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 1MDQg9-0001Rn-0M for garchives@archives.gentoo.org; Sun, 07 Jun 2009 22:17:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E78D9E013D; Sun, 7 Jun 2009 22:17:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C2063E013D for ; Sun, 7 Jun 2009 22:17:23 +0000 (UTC) Received: from mail.isohunt.com (b01.ext.isohunt.com [208.71.112.51]) by smtp.gentoo.org (Postfix) with ESMTP id 256D067675 for ; Sun, 7 Jun 2009 22:17:23 +0000 (UTC) Received: (qmail 9650 invoked from network); 7 Jun 2009 22:17:16 -0000 Received: from tsi-static.orbis-terrarum.net (HELO curie.orbis-terrarum.net) (76.10.188.108) (smtp-auth username robbat2@isohunt.com, mechanism login) by mail.isohunt.com (qpsmtpd/0.33-dev on beta01) with (AES256-SHA encrypted) ESMTPSA; Sun, 07 Jun 2009 22:17:16 +0000 Received: (qmail 22115 invoked by uid 10000); 7 Jun 2009 15:17:13 -0700 Date: Sun, 7 Jun 2009 15:17:13 -0700 From: "Robin H. Johnson" 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) Message-ID: References: <20090607195950.GI22927@orbis-terrarum.net> <18988.14596.869442.77191@a1ihome1.kph.uni-mainz.de> 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1hVIwB4NpNcOOTEe" Content-Disposition: inline In-Reply-To: <18988.14596.869442.77191@a1ihome1.kph.uni-mainz.de> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 0bdb89cf-dab1-48a0-b9be-449ddc919776 X-Archives-Hash: cafe04761f252cd7dff791c97ee9cc9b --1hVIwB4NpNcOOTEe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 08, 2009 at 12:02:44AM +0200, Ulrich Mueller wrote: > >>>>> On Sun, 7 Jun 2009, Robin H Johnson wrote: > > 2. Right now, every init.d script that needs to detection should revbump > > and change to the following: > > [[ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /libexec/rc/versio= n ]] > Wasn't the convention for init scripts to use only single square > brackets, i.e. POSIX shell syntax? That was raised in the bug as well. My testing was with bash --posix, so if that doesn't implement POSIX correctly, then yes, we'd need to change. Roy: [[ or [? --=20 Robin Hugh Johnson Gentoo Linux Developer & Infra Guy E-Mail : robbat2@gentoo.org GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --1hVIwB4NpNcOOTEe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks - The text below is a digital signature. If it doesn't make any sense to you, ignore it. iEYEARECAAYFAkosPGkACgkQPpIsIjIzwiwybACcDjooB+hHNPMwUhfi+25gqF0b kGYAoO/qY7gJugLRT9ixMazZd4B7gNZE =0bhd -----END PGP SIGNATURE----- --1hVIwB4NpNcOOTEe--