From owner-freebsd-arch Tue Apr 9 9:31:15 2002 Delivered-To: freebsd-arch@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id E3D3F37B417 for ; Tue, 9 Apr 2002 09:31:07 -0700 (PDT) Received: from caddis.yogotech.com (yogotech.nokia.com [4.22.66.156]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id KAA22657; Tue, 9 Apr 2002 10:31:05 -0600 (MDT) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g39GV2q04282; Tue, 9 Apr 2002 10:31:02 -0600 (MDT) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15539.5958.66973.551501@caddis.yogotech.com> Date: Tue, 9 Apr 2002 10:31:02 -0600 To: Luigi Rizzo Cc: Nate Williams , arch@FreeBSD.ORG Subject: Re: proposed code: automatic setting of hostname from MAC address In-Reply-To: <20020409092708.A63224@iguana.icir.org> References: <20020407035941.B37911@iguana.icir.org> <15538.12905.744914.71228@caddis.yogotech.com> <20020408235226.B57765@iguana.icir.org> <15539.3500.712066.51894@caddis.yogotech.com> <20020409092708.A63224@iguana.icir.org> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) 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 > > Right. It allows you to use the a custom configuration file that will > > allow you to configure multiple machines with the same configuration > > file, right? > > > > I don't like it because it's non-standard, and uses a completely > > non-standard configuration file. > > I frankly don't understand your objection. I am just proposing to > add a few shell functions in the default scripts that users may > decide to use if they like to, or just stick to the existing > code. > > Why do you define it "non standard", and call "not standard" > the config files ? > + yes, in the picobsd version the MAC<->hostname mapping was in > /etc/hosts, but this will be moved to /etc/ethers which is the > standard place for this stuff; /etc/ethers is for determining a network mask, not for determining a host's IP address. Using it otherwise is non-standard. > + the use of a "case ${hostname} .." in rc.conf is, yes, "non standard", > but you don't have to use it, and as a matter of fact it is what lets > you handle the "slightly different configuration" for each machine > in a centralised place. /etc/rc.conf *is* the method for configuring each machine. You're changing what was previously a machine-specific file into a machine-independant file, totally changing the way things are done. (In a more confusing/less flexible way I might add.) > > However, I don't have a better solution. What I did was rip out all of > > the code in my PicoBSD builds to use the stock 'rc.conf' stuff, and then > > I add a customized rc.conf for each different machine I build (by hand) > > that contains that machine's configuration. However, in my case, each > > machine has a slightly different configuration, so I need something more > > than a different ifconfig line, so my situation is obviously different > > than yours. > ... Just because something is useful doesn't mean it should be added to FreeBSD. I believe your solution has very limited usefulness beyond your particular situation, and as such, shouldn't be added to FreeBSD. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message