From owner-freebsd-questions@FreeBSD.ORG Thu Feb 1 22:47:46 2007 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB97116A410; Thu, 1 Feb 2007 22:47:46 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc3-cdif2-0-0-cust64.cdif.cable.ntl.com [81.106.128.65]) by mx1.freebsd.org (Postfix) with ESMTP id 9B63313C441; Thu, 1 Feb 2007 22:47:46 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HCkiV-0009Fz-2a; Thu, 01 Feb 2007 22:47:43 +0000 Date: Thu, 1 Feb 2007 22:47:43 +0000 From: Ceri Davies To: Antony Mawer Message-ID: <20070201224742.GG42746@submonkey.net> References: <401057.51722.qm@web52105.mail.yahoo.com> <45C01FE3.2080107@mawer.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6qFdnjy6dKaiDX/E" Content-Disposition: inline In-Reply-To: <45C01FE3.2080107@mawer.org> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Ceri Davies Cc: trhodes@FreeBSD.org, freebsd-doc@FreeBSD.org, rhyous@yahoo.com, freebsd-questions@FreeBSD.org Subject: Re: man sysinstall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 22:47:47 -0000 --6qFdnjy6dKaiDX/E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2007 at 03:49:39PM +1100, Antony Mawer wrote: > On 31/01/2007 3:05 PM, Jared Barneck wrote: > ... > >I found the answer for how to reboot in the code. To > >reboot add the following to the end of the > >install.cfg: > > > >shutdown > > > >I found it in this source file: > >/usr/src/usr.sbin/sysinstall/dispatch.c > > > >This source file has a list of a lot of the functions > >that can be called in the install.cfg. Even though the > >function is called "shutdown" it is a reboot not a > >shutdown, which is perfect because I wanted it to > >reboot. >=20 > I have a local patch that we use on our installation process that adds a= =20 > couple of new commands: >=20 > poweroff - shutdown and power off the machine (useful for doing > installation, then shut down for shipping) > poweroffNoRC - as above, but don't attempt to write rc.conf > shutdownNoRC - like regular "shutdown" (reboot), but no rc.conf >=20 > The latter two options are handy if you write your own scripts that=20 > generate rc.conf, as normally sysinstall tries to write rc.conf itself=20 > on shutdown, which clobbers any existing file your scripts may create. >=20 > If anyone is interested and/or these are likely candidates for inclusion= =20 > then I can submit a PR to have someone check these in. I also have a man= =20 > page update that documents the above functions. Antony, please do. Thanks, Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --6qFdnjy6dKaiDX/E Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFwm4OocfcwTS3JF8RArGUAKCVK9PMi7RGVAHVr10TdWQbF4TttQCgmCSv AWntmNS3WZlMtkzoLXU1qDw= =ozAY -----END PGP SIGNATURE----- --6qFdnjy6dKaiDX/E--