Gentoo Archives: gentoo-user

From: YoYo Siska <yoyko@×××××××.sk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Determining the current runlevel
Date: Tue, 19 Jul 2005 12:21:23
Message-Id: 42DCEEA0.6090501@mailbox.sk
In Reply to: Re: [gentoo-user] Re: Determining the current runlevel by Neil Bothwick
1 Neil Bothwick wrote:
2 > On Tue, 19 Jul 2005 12:21:25 +0200, Remy Blank wrote:
3 >
4 >
5 >># cat /var/lib/init.d/softlevel
6 >>default
7 >
8 >
9 > That's it! Many thanks.
10
11 I usualy do:
12
13 source /etc/conf.d/rc
14 rl=`cat "$svcdir/softlevel"`
15
16 just to be sure... ;)
17 or directly
18
19 source /sbin/functions.sh
20 rl=`cat "$svcdir/softlevel"`
21
22 functions.sh do source the config and have some functions that can be
23 handy... (einfo, ewarn, eeror to begin with...)
24 --
25 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Re: Determining the current runlevel michael@×××××××××××××.com