From owner-freebsd-arch Tue Apr 9 9:27:17 2002 Delivered-To: freebsd-arch@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id DA09737B400 for ; Tue, 9 Apr 2002 09:27:13 -0700 (PDT) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g39GR8O63318; Tue, 9 Apr 2002 09:27:08 -0700 (PDT) (envelope-from rizzo) Date: Tue, 9 Apr 2002 09:27:08 -0700 From: Luigi Rizzo To: Nate Williams Cc: arch@FreeBSD.ORG Subject: Re: proposed code: automatic setting of hostname from MAC address Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15539.3500.712066.51894@caddis.yogotech.com> User-Agent: Mutt/1.3.23i 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 Tue, Apr 09, 2002 at 09:50:04AM -0600, Nate Williams wrote: ... > 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; + 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. > 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. ... cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message