Date: Thu, 1 Feb 2007 22:47:43 +0000 From: Ceri Davies <ceri@submonkey.net> To: Antony Mawer <fbsd-questions@mawer.org> Cc: trhodes@FreeBSD.org, freebsd-doc@FreeBSD.org, rhyous@yahoo.com, freebsd-questions@FreeBSD.org Subject: Re: man sysinstall Message-ID: <20070201224742.GG42746@submonkey.net> In-Reply-To: <45C01FE3.2080107@mawer.org> References: <401057.51722.qm@web52105.mail.yahoo.com> <45C01FE3.2080107@mawer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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.
>
> I have a local patch that we use on our installation process that adds a
> couple of new commands:
>
> 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
>
> The latter two options are handy if you write your own scripts that
> generate rc.conf, as normally sysinstall tries to write rc.conf itself
> on shutdown, which clobbers any existing file your scripts may create.
>
> If anyone is interested and/or these are likely candidates for inclusion
> then I can submit a PR to have someone check these in. I also have a man
> page update that documents the above functions.
Antony, please do.
Thanks,
Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
iD8DBQFFwm4OocfcwTS3JF8RArGUAKCVK9PMi7RGVAHVr10TdWQbF4TttQCgmCSv
AWntmNS3WZlMtkzoLXU1qDw=
=ozAY
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070201224742.GG42746>
