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 |