Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2010 03:09:29 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Booting multiple choice, and pause to read bootup info
Message-ID:  <20100622030929.2d2e0814@gumby.homeunix.com>
In-Reply-To: <20100622011922.GA2317@auricle.charter.net>
References:  <20100622011922.GA2317@auricle.charter.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Jun 2010 20:19:22 -0500
"J. Porter Clark" <jpc@porterclark.com> 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.


Perhaps you could have your menu in an rc script (or even auto-detect
from one), and then have it touch a file or something to signal to
other scripts.

rc.conf is a shell script that sourced for each rc script so you could
have entries like

[ -f /tmp/home-wireless ] && enable_foo=yes 

to determine which daemons start.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100622030929.2d2e0814>