From owner-freebsd-rc@FreeBSD.ORG Fri May 29 19:19:17 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED47D106566B for ; Fri, 29 May 2009 19:19:17 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 7E5078FC13 for ; Fri, 29 May 2009 19:19:17 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 14360 invoked by uid 399); 29 May 2009 19:19:12 -0000 Received: from localhost (HELO ?192.168.0.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 29 May 2009 19:19:12 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A203531.8020107@FreeBSD.org> Date: Fri, 29 May 2009 12:19:13 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: yvesguerin@yahoo.ca References: <302139.58064.qm@web56408.mail.re3.yahoo.com> In-Reply-To: <302139.58064.qm@web56408.mail.re3.yahoo.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-rc@freebsd.org Subject: Re: Profile rc idea X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2009 19:19:18 -0000 Yves Guérin wrote: > I did something similar to your idea, I custom the boot menu (beastie.4th) to choose between home, office, dhcp and default configuration for my network interface on my laptop. > I grab the answer or the choice via the kenv system call, and on my rc directory I start my own script just before netif to configure my network depending on the answer I choose at boot time. So I think the idea can be modify for every used that you can dream of. > > I am able to send you my configuration, the boot menu and the rc file. I really like the idea of leveraging the existing boot menu for this. Can you send your patches to the list? Doug