From: Richard Brown <mynamewasgone@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Determining the current runlevel
Date: Tue, 19 Jul 2005 12:30:47 +0100 [thread overview]
Message-ID: <df1735a2050719043029b01152@mail.gmail.com> (raw)
In-Reply-To: <20050719120915.54ee8fa0@hactar.digimed.co.uk>
On 19/07/05, Neil Bothwick <neil@digimed.co.uk> wrote:
> 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.
rc-status -nc | head -n 1 | cut -c11-
HTH
--
Richard Brown
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2005-07-19 11:36 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
2005-07-19 11:30 ` Richard Brown [this message]
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=df1735a2050719043029b01152@mail.gmail.com \
--to=mynamewasgone@gmail.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