From owner-freebsd-questions@FreeBSD.ORG Tue Jun 22 02:09:34 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 99BE4106566C for ; Tue, 22 Jun 2010 02:09:34 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 24DD08FC16 for ; Tue, 22 Jun 2010 02:09:33 +0000 (UTC) Received: by fxm7 with SMTP id 7so2614710fxm.13 for ; Mon, 21 Jun 2010 19:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=JuXhgoO8SdOok3oMgF3B1hfnnWavTY9OL8iOAM7Hl2A=; b=TDQKocBr/kAr28zu/pNnvxSW6yf/aRNu+1uEQ8EkyboO1aOmd1YmwiU2yb1tAEu1nH 2pVr1nOkC+CB1Hh+hrvWz4O3LKnxmxEHMiFyx6l8jFv2xQIPOCVbKKClckKMzA/DrLE7 RSbwccjFBcdqPF10ZDkTQd0V2XquQ95FkEk/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=R6oQine4fVIEoS9qzptMOyuWWuvjaQXDiOnlFjHhwD4M+DJyJBooSGPvEE0X1IEvdC uSkFSPYE9qJcIrKuzvEZ1Jg9QIVR5jX4EktCHjlgHLpKOwPEsZ1fGl+USSAKf+IOoROr /SXUAbw+5UyK30B/3xtIfRc8Z22/hXNT7cZd8= Received: by 10.87.64.25 with SMTP id r25mr9401860fgk.20.1277172573100; Mon, 21 Jun 2010 19:09:33 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 4sm9358124fgg.17.2010.06.21.19.09.31 (version=SSLv3 cipher=RC4-MD5); Mon, 21 Jun 2010 19:09:32 -0700 (PDT) Date: Tue, 22 Jun 2010 03:09:29 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100622030929.2d2e0814@gumby.homeunix.com> In-Reply-To: <20100622011922.GA2317@auricle.charter.net> References: <20100622011922.GA2317@auricle.charter.net> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:09:34 -0000 On Mon, 21 Jun 2010 20:19:22 -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. 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.