public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Determining the current runlevel
Date: Tue, 19 Jul 2005 12:09:15 +0100	[thread overview]
Message-ID: <20050719120915.54ee8fa0@hactar.digimed.co.uk> (raw)
In-Reply-To: <1121767433.31991.62.camel@neuromancer.home.net>

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

On Tue, 19 Jul 2005 18:03:53 +0800, Ow Mun Heng 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?

It doesn't, because the numeric runlevel is always three (unless you've
messed with /etc/inittab). I need the Gentoo  runlevel; default,
nonetwork etc.


-- 
Neil Bothwick

Adolescence, n.: The stage between puberty and adultery.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-07-19 11:13 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
2005-07-19 11:09   ` Neil Bothwick [this message]
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=20050719120915.54ee8fa0@hactar.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --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