From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1406 Path: news.gmane.org!not-for-mail From: Alejandro Mery Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Initial runlevel through kernel parameters Date: Fri, 27 Apr 2007 20:33:18 -0400 Message-ID: <20070427203318.6a7a00b1@rafaella.bq.cl> References: <200704271041.10379.mike@geekgene.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_13kfaE40nMEWFrsvTHJo6MU; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Trace: sea.gmane.org 1177705977 24786 80.91.229.12 (27 Apr 2007 20:32:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 20:32:57 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1643-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Apr 27 22:32:55 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1HhX7Z-00037d-9S for gcsg-supervision@gmane.org; Fri, 27 Apr 2007 22:32:49 +0200 Original-Received: (qmail 928 invoked by uid 76); 27 Apr 2007 20:33:10 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 922 invoked from network); 27 Apr 2007 20:33:10 -0000 X-Mail-Scanner: Scanned by qSheff-II-2.1-r2 (http://www.enderunix.org/qsheff/) In-Reply-To: <200704271041.10379.mike@geekgene.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.6; i686-unknown-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1406 Archived-At: --Sig_13kfaE40nMEWFrsvTHJo6MU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am 2007-04-27 schrieb Mike Buland : > Is this possible? in linux to parse the command line is as simple as: set -- $( cat /proc/cmdline ) for x; do case "$x" in whatever=3D*) echo "$x" ;; esac done taking the value from there can be used at /etc/runit/1 to take decisions, like the initial runlevel. Alejandro Mery --=20 GPG/PGP: DA23A600 / 19F7 C16C 14FA B29F 36A6 0588 FE44 6717 DA23 A600 --Sig_13kfaE40nMEWFrsvTHJo6MU Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGMpZO/kRnF9ojpgARAjCaAJ9sHiwteWZFXa9CUjHWeVJ/neI3FACfTqzS Ujg41H5sdMkEahofeyCYgKg= =eAyZ -----END PGP SIGNATURE----- --Sig_13kfaE40nMEWFrsvTHJo6MU--