From owner-freebsd-questions Tue Mar 16 16: 2:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from grizzly.fas.com (cc69528-a.mtpls1.sc.home.com [24.6.61.166]) by hub.freebsd.org (Postfix) with ESMTP id 17A6815057 for ; Tue, 16 Mar 1999 16:02:50 -0800 (PST) (envelope-from stanb@awod.com) Received: by grizzly.fas.com ($Revision: 1.37.109.23 $/16.2) id AA051986986; Tue, 16 Mar 1999 18:29:46 -0500 Subject: How to determine system runlevel? To: freebsd-questions@freebsd.org (Free BSD Questions list) Date: Tue, 16 Mar 1999 18:29:45 -0500 (EST) From: "Stan Brown" X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 775 Message-Id: <19990317000251.17A6815057@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am writing a little network autoconfigure script. I would like to be able to call this script either from the rc files, or at run time once the system is fully up, and in multiuser. 2 questiosn: 1. What runlevel is the system in when the rc files are run? 2. How can I determine the current runlevl? -- Stan Brown stanb@netcom.com 843-745-3154 Westvaco Charleston SC. -- Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. - (c) 1999 Stan Brown. Redistribution via the Microsoft Network is prohibited. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message