Date: Tue, 29 Aug 2000 19:15:38 +0200 (CEST) From: Ronald Klop <ronald@klop.yi.org> To: freebsd-questions@freebsd.org Subject: Re: detecting reboot (solved my own question) Message-ID: <Pine.BSF.4.21.0008291909290.925-100000@dlanor.evertsen.nl> In-Reply-To: <20000829160502.793761E69@nil.science-factory.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008291909290.925-100000>