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: pgpwjRvMItu42.pgp
Description: PGP signature

Reply via email to