Gentoo Archives: gentoo-user

From: Ow Mun Heng <Ow.Mun.Heng@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Determining the current runlevel
Date: Tue, 19 Jul 2005 10:11:16
Message-Id: 1121767433.31991.62.camel@neuromancer.home.net
In Reply to: [gentoo-user] Determining the current runlevel by Neil Bothwick
1 On Tue, 2005-07-19 at 10:32 +0100, Neil Bothwick wrote:
2 > I'm sure I've seen this mentioned before, but can't find it. I need a way
3 > to find the current Gentoo runlevel (not the numeric one) in a script. I
4 > can check the level booted by grepping /proc/cmdline, but that fails if
5 > the runlevel was subsequently changed with rc.
6
7 not sure if executing
8
9 $runlevel
10 N 3
11
12 helps?
13
14
15 --
16 Ow Mun Heng
17 Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
18 98% Microsoft(tm) Free!!
19 Neuromancer 18:03:34 up 2 days, 1:11, 9 users, load average: 2.53, 1.24,
20 1.01
21
22
23 --
24 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Determining the current runlevel Neil Bothwick <neil@××××××××××.uk>