From owner-freebsd-questions@FreeBSD.ORG Tue Jun 22 02:56:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD5F2106564A for ; Tue, 22 Jun 2010 02:56:50 +0000 (UTC) (envelope-from freebsd@optimis.net) Received: from mail.optimis.net (mail.optimis.net [69.104.191.124]) by mx1.freebsd.org (Postfix) with ESMTP id 9B4948FC0C for ; Tue, 22 Jun 2010 02:56:50 +0000 (UTC) Received: from marvin.optimis.net (marvin.optimis.net [192.168.1.3]) by mail.optimis.net (8.14.3/8.14.3) with ESMTP id o5M2unc9066656 for ; Mon, 21 Jun 2010 19:56:49 -0700 (PDT) (envelope-from freebsd@optimis.net) Received: from marvin.optimis.net (localhost [127.0.0.1]) by marvin.optimis.net (8.14.3/8.14.3) with ESMTP id o5M2unXP080338; Mon, 21 Jun 2010 19:56:49 -0700 (PDT) (envelope-from freebsd@optimis.net) Received: (from george@localhost) by marvin.optimis.net (8.14.3/8.14.3/Submit) id o5M2un5U080337; Mon, 21 Jun 2010 19:56:49 -0700 (PDT) (envelope-from freebsd@optimis.net) Date: Mon, 21 Jun 2010 19:56:49 -0700 From: George Davidovich To: freebsd-questions@freebsd.org Message-ID: <20100622025649.GA80151@marvin.optimis.net> References: <20100622011922.GA2317@auricle.charter.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100622011922.GA2317@auricle.charter.net> User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: Booting multiple choice, and pause to read bootup info 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: Tue, 22 Jun 2010 02:56:50 -0000 On Mon, Jun 21, 2010 at 08:19:22PM -0500, J. Porter Clark wrote: > 1. I'd like to be able to expand the list of choices in the > boot menu (the menu with single user mode, safe mode, etc.) to > include booting in any of several different environments, e.g., > home wired, home wireless, work wired, work wireless. Hacking > the FORTH code isn't entirely out of the question, but before > I even try it, I need to know how I could tell the system to > switch among different rc.conf files (if that's even possible) > from the loader. Offhand, I don't see a mechanism for doing so. > Cleverer ideas welcome. I did something similar for PXE scenarios but eventually decided I was spending more time coming up with clever ideas than I would have saved making use of any of them. The approach I took was to write a custom loader.rc (with an include for each of the possible options), but IIRC everything was presented via a rudimentary menu. For customising the existing menu, if you read through loader(8), and then have a look at what's provided in /usr/share/examples/bootforth, you should be able to figure things out without too much trouble. -- George