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 1DupIr-0004l3-A2 for garchives@archives.gentoo.org; Tue, 19 Jul 2005 10:26:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6JAOX6u000375; Tue, 19 Jul 2005 10:24:33 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6JAL1wN022700 for ; Tue, 19 Jul 2005 10:21:01 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DupEc-0003wf-B2 for gentoo-user@lists.gentoo.org; Tue, 19 Jul 2005 10:21:58 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DupEV-0002re-66 for gentoo-user@gentoo.org; Tue, 19 Jul 2005 12:21:51 +0200 Received: from blueboticspc1.epfl.ch ([128.179.67.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jul 2005 12:21:51 +0200 Received: from remy.blank_asps by blueboticspc1.epfl.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jul 2005 12:21:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Remy Blank Subject: [gentoo-user] Re: Determining the current runlevel Date: Tue, 19 Jul 2005 12:21:25 +0200 Message-ID: References: <20050719103229.59118b4a@hactar.digimed.co.uk> 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: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: blueboticspc1.epfl.ch User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: <20050719103229.59118b4a@hactar.digimed.co.uk> Sender: news X-Archives-Salt: 4a3ece0b-295a-442e-b3ed-b5a64d21d2b2 X-Archives-Hash: 7ac300bcc4031cbcc23a84e022c649bf Neil Bothwick wrote: > 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. # cat /var/lib/init.d/softlevel default HTH. -- Remy Remove underscore and suffix in reply address for a timely response. -- gentoo-user@gentoo.org mailing list