From owner-freebsd-questions@FreeBSD.ORG Wed Jan 31 05:22:17 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 4DF5916A401; Wed, 31 Jan 2007 05:22:17 +0000 (UTC) (envelope-from fbsd-questions@mawer.org) Received: from customer-domains.icp-qv1-irony14.iinet.net.au (customer-domains.icp-qv1-irony14.iinet.net.au [203.59.1.169]) by mx1.freebsd.org (Postfix) with ESMTP id 5AF8113C471; Wed, 31 Jan 2007 05:22:16 +0000 (UTC) (envelope-from fbsd-questions@mawer.org) Received: from 203-206-173-235.perm.iinet.net.au (HELO [10.24.1.1]) ([203.206.173.235]) by iinet-mail.icp-qv1-irony14.iinet.net.au with ESMTP; 31 Jan 2007 13:52:05 +0900 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAD6vv0XLzq3r/2dsb2JhbAANnUMBAQE X-IronPort-AV: i="4.13,259,1167577200"; d="scan'208"; a="113795720:sNHT7418940" Message-ID: <45C01FE3.2080107@mawer.org> Date: Wed, 31 Jan 2007 15:49:39 +1100 From: Antony Mawer User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: rhyous@yahoo.com References: <401057.51722.qm@web52105.mail.yahoo.com> In-Reply-To: <401057.51722.qm@web52105.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: trhodes@FreeBSD.org, freebsd-doc@FreeBSD.org, ceri@submonkey.net, 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: Wed, 31 Jan 2007 05:22:17 -0000 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. Cheers Antony