From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DuysC-0006oj-3P for garchives@archives.gentoo.org; Tue, 19 Jul 2005 20:39:28 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6JKcbhT024142; Tue, 19 Jul 2005 20:38:37 GMT Received: from mail.magrittesystems.com (adsl-64-173-154-114.dsl.snfc21.pacbell.net [64.173.154.114]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6JKZ3hu009695 for ; Tue, 19 Jul 2005 20:35:04 GMT Received: by mail.magrittesystems.com (Postfix, from userid 1000) id AEF503C0008; Tue, 19 Jul 2005 13:14:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.magrittesystems.com (Postfix) with ESMTP id A39DE3C0006 for ; Tue, 19 Jul 2005 13:14:31 -0700 (PDT) Date: Tue, 19 Jul 2005 13:14:31 -0700 (PDT) From: michael@michaelshiloh.com X-X-Sender: michael@mail.magrittesystems.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Determining the current runlevel In-Reply-To: <42DCEEA0.6090501@mailbox.sk> Message-ID: References: <20050719103229.59118b4a@hactar.digimed.co.uk> <20050719122902.43beb1da@hactar.digimed.co.uk> <42DCEEA0.6090501@mailbox.sk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Archives-Salt: 21d5442d-a070-463d-a2f3-fa8e5d0930de X-Archives-Hash: 65e53ec1ef01ecac46c2ba3e1dfa4ca5 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