On Tue, 19 Jul 2005, YoYo Siska wrote:

Neil Bothwick wrote:
On Tue, 19 Jul 2005 12:21:25 +0200, Remy Blank wrote:


# cat /var/lib/init.d/softlevel
default


That's it! Many thanks.

I usualy do:

source /etc/conf.d/rc
rl=`cat "$svcdir/softlevel"`

just to be sure... ;)
or directly

source /sbin/functions.sh
rl=`cat "$svcdir/softlevel"`

functions.sh do source the config and have some functions that can be
handy... (einfo, ewarn, eeror to begin with...)
--

But don't these just report what it would be if no on changed it? If you
force a runlevel change after the system has booted, is there any way to
find that out afterwards?

--
gentoo-user@gentoo.org mailing list

Reply via email to