From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DuoX4-0004Jo-Ur for garchives@archives.gentoo.org; Tue, 19 Jul 2005 09:36:59 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6J9ZA5c032409; Tue, 19 Jul 2005 09:35:10 GMT Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6J9Veu1005469 for ; Tue, 19 Jul 2005 09:31:40 GMT Received: from [82.69.83.178] (helo=desiato.digimed.co.uk) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1DuoSr-0001Uj-H4 for gentoo-user@lists.gentoo.org; Tue, 19 Jul 2005 09:32:37 +0000 Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.2]) by desiato.digimed.co.uk (Postfix) with ESMTP id 4FCEF1406264 for ; Tue, 19 Jul 2005 10:32:32 +0100 (BST) Date: Tue, 19 Jul 2005 10:32:29 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Determining the current runlevel Message-ID: <20050719103229.59118b4a@hactar.digimed.co.uk> Organization: Digital Media Production X-Mailer: Sylpheed-Claws 1.9.12 (GTK+ 2.6.8; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Signature_Tue__19_Jul_2005_10_32_29_+0100_7psBTqdWydUcw.kN; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Originating-Rutherford-IP: [82.69.83.178] X-Archives-Salt: 173c8813-f5a6-41ff-b10a-99e96232ad40 X-Archives-Hash: 65bc89dbe5146e7d44dccdb8850a55b1 --Signature_Tue__19_Jul_2005_10_32_29_+0100_7psBTqdWydUcw.kN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I'm sure I've seen this mentioned before, but can't find it. I need a way to find the current Gentoo runlevel (not the numeric one) in a script. I can check the level booted by grepping /proc/cmdline, but that fails if the runlevel was subsequently changed with rc. --=20 Neil Bothwick Don't forget that MS-Windows is just a temporary workaround until you can switch to a GNU system. --Signature_Tue__19_Jul_2005_10_32_29_+0100_7psBTqdWydUcw.kN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC3Miwum4al0N1GQMRAh1oAJoCFxei8MlP2SXY8PeVOf0UG/j6uwCgzlKD lonG/bp2YMq4lxEl7OF/waM= =ZsrQ -----END PGP SIGNATURE----- --Signature_Tue__19_Jul_2005_10_32_29_+0100_7psBTqdWydUcw.kN-- -- gentoo-user@gentoo.org mailing list