From owner-freebsd-questions Tue Aug 29 10:15:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from node11a94.a2000.nl (node11a94.a2000.nl [24.132.26.148]) by hub.freebsd.org (Postfix) with SMTP id F12F537B443 for ; Tue, 29 Aug 2000 10:15:42 -0700 (PDT) Received: (qmail 28607 invoked from network); 29 Aug 2000 17:15:38 -0000 Received: from dlanor.evertsen.nl (10.0.0.3) by bak.evertsen.nl with SMTP; 29 Aug 2000 17:15:38 -0000 Date: Tue, 29 Aug 2000 19:15:38 +0200 (CEST) From: Ronald Klop To: freebsd-questions@freebsd.org Subject: Re: detecting reboot (solved my own question) In-Reply-To: <20000829160502.793761E69@nil.science-factory.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To answer my own question: init gives a command line argument 'autoboot' to rc if you are booting and doesn't give a command line argument if your coming from single user mode. This is the most accurate method to check if you are really booting or not. Just export it to the environment and you can use it in all your scripts. Unfortunately you have to change the script rc for this which is not so nice. Greetings, Ronald. - -- Ronald Klop http://klop.yi.org/ http://www.FreeBSD.org/ http://klop.yi.org/~ronald/ PGP: http://klop.yi.org/~ronald/pgp.txt mailto:ronald@klop.yi.org?Subject=publicpgpkey -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBOavvuxk9lWSXChWeEQLjrQCgkgGwh2qq/5aCxWGEiry5g6/v7WgAoK6y WzAlTldhiu47/MDOU+41LWQg =E6h/ -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message