Gentoo Archives: gentoo-user

From: Remy Blank <remy.blank_asps@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Determining the current runlevel
Date: Tue, 19 Jul 2005 10:26:21
Message-Id: dbik75$qsr$1@sea.gmane.org
In Reply to: [gentoo-user] Determining the current runlevel by Neil Bothwick
1 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 # cat /var/lib/init.d/softlevel
8 default
9
10 HTH.
11 -- Remy
12
13
14 Remove underscore and suffix in reply address for a timely response.
15
16 --
17 gentoo-user@g.o mailing list

Replies

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