public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ow Mun Heng <Ow.Mun.Heng@wdc.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Determining the current runlevel
Date: Tue, 19 Jul 2005 18:03:53 +0800	[thread overview]
Message-ID: <1121767433.31991.62.camel@neuromancer.home.net> (raw)
In-Reply-To: <20050719103229.59118b4a@hactar.digimed.co.uk>

On Tue, 2005-07-19 at 10:32 +0100, 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.

not sure if executing

$runlevel
N 3

helps?


-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 18:03:34 up 2 days, 1:11, 9 users, load average: 2.53, 1.24,
1.01 


-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2005-07-19 10:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19  9:32 [gentoo-user] Determining the current runlevel Neil Bothwick
2005-07-19 10:03 ` Ow Mun Heng [this message]
2005-07-19 11:09   ` Neil Bothwick
2005-07-19 11:30     ` Richard Brown
2005-07-19 12:47       ` Neil Bothwick
2005-07-19 10:21 ` [gentoo-user] " Remy Blank
2005-07-19 11:29   ` Neil Bothwick
2005-07-19 12:14     ` YoYo Siska
2005-07-19 20:14       ` michael
2005-07-20 13:26         ` A. R.
2005-07-20 13:37           ` Neil Bothwick
2005-07-20 13:44             ` A. R.
2005-07-20 14:23               ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1121767433.31991.62.camel@neuromancer.home.net \
    --to=ow.mun.heng@wdc.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox