On 19/07/05, Neil Bothwick <[EMAIL PROTECTED]> 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

Reply via email to