From owner-freebsd-arch Fri Sep 14 4:36:56 2001 Delivered-To: freebsd-arch@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id D6AE437B410; Fri, 14 Sep 2001 04:36:40 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f8EBZUS19283; Fri, 14 Sep 2001 14:35:30 +0300 (EEST) (envelope-from ru) Date: Fri, 14 Sep 2001 14:35:30 +0300 From: Ruslan Ermilov To: Brooks Davis Cc: net@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: review request: creating cloneable interfaces at boot Message-ID: <20010914143530.E12915@sunbay.com> References: <20010913200221.A11788@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010913200221.A11788@Odin.AC.HMC.Edu>; from brooks@one-eyed-alien.net on Thu, Sep 13, 2001 at 08:02:21PM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Sep 13, 2001 at 08:02:21PM -0700, Brooks Davis wrote: > I'd like to commit something like the following patch to create clonable > interfaces at boot so they can be configured the normal way. Any one > have comments or suggestions? > Umm, how about extending the ${network_interfaces} functionality as follows. For each ${network_interfaces} argument, 1. if the value is `auto', add `ifconfig -l' to the list of interfaces 2. for every other argument which is not in the `ifconfig -l' list (ifconfig -l | grep -wq ${ifn} returns non-zero), but in the list of cloners (ifconfig -L) creates the corresponding interface. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message