From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 12:14:12 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 49C7A106567C for ; Mon, 1 Jun 2009 12:14:12 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: from web56403.mail.re3.yahoo.com (web56403.mail.re3.yahoo.com [216.252.111.82]) by mx1.freebsd.org (Postfix) with SMTP id 058AF8FC14 for ; Mon, 1 Jun 2009 12:14:11 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: (qmail 32412 invoked by uid 60001); 1 Jun 2009 12:14:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1243858451; bh=cxlUsznBCU9CDA9p6za0n1I+Gj12PsPVc/uD1pzk3fo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=Pg75lLH7xefuy2KgGAwHxjlLwPEhuDp7b6wbC5yMHFGpFWyRFHALnuMczZvUUTU2jkJ0mnKgPWd+yRLO61fpXKYNrMYvg3e2xp3ZUwASEkYLQT/6YWI9hCZrogws6u0LxnAdOS6oJCnVEJar7C9AI4znSVGvyoFz4gYi36Dno4E= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=JOTtm+B4OFCAy9hljCHG4r3E25a21W5ImJwwPq136HmRNRm0XS0ED6UwE00cMu+VN2W/JkEhh9cG3j1m08e/0Bmd4Hh/xqpVMHaGLkU8aqr6/nbchKqWgy4gQMLwaa4JF3NNs1f+bowgdWGRksy1jIJRX6DE4XmyHSZXZ3CGVsE=; Message-ID: <354710.32407.qm@web56403.mail.re3.yahoo.com> X-YMail-OSG: VMTZxTEVM1kwyWWp5AzIx.FR1zzbphFj7Vaktsr.SZOybS.ruEDkfP0rxqQ6fEWtLdiOdU59_lHTAxW28jsNVrAKlWV_8_Cg2HGOcRClM54gadfv2DqIBa47BkjV83P7_89sC7ni9VtSBEi6p.OgcbWhyv688a7O96EIOqgZBtox8.k0Yf9MfRSdIk7ecIVya_cuE139igVavA5HWYq9OKdtalJ_k7blGvTuk9sXmg55uUHTKQU7MPNCNEa3x.38vqTUW6fXfi8xBZIBEs.AH.LB2nN2.5rDC5I6Uyre4jFAh.uV_YUwxnTc.pR6H1cAiY9bp1ad0lBkjg-- Received: from [198.168.152.20] by web56403.mail.re3.yahoo.com via HTTP; Mon, 01 Jun 2009 05:14:11 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Mon, 1 Jun 2009 05:14:11 -0700 (PDT) From: =?iso-8859-1?Q?Yves_Gu=E9rin?= To: Doug Barton MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-rc@freebsd.org Subject: Re: Profile rc idea X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yvesguerin@yahoo.ca 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: Mon, 01 Jun 2009 12:14:12 -0000 Dear Doug, I will do some doc to explain what I have done, I will try to produce a pat= ch but my coding style may not follow the freebsd style and a review form t= he freebsd team will be necessary. Regards, Yves Guerin --- En date de : Sam 30.5.09, Doug Barton a =E9crit : De: Doug Barton Objet: Re: Profile rc idea =C0: yvesguerin@yahoo.ca Cc: freebsd-rc@freebsd.org Date: Samedi 30 Mai 2009, 0h19 Yves Gu=E9rin 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 net= work interface on my laptop. > I grab the answer or the choice via the kenv system call, and on my rc di= rectory I start my own script just before netif to configure my network dep= ending on the answer I choose at boot time. So I think the idea can be modi= fy for every used that you can dream of. >=20 > 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 =0A=0A=0A