From owner-freebsd-arch Tue Apr 9 22:51:50 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 6832437B419; Tue, 9 Apr 2002 22:51:48 -0700 (PDT) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g3A5pmF68438; Tue, 9 Apr 2002 22:51:48 -0700 (PDT) (envelope-from rizzo) Date: Tue, 9 Apr 2002 22:51:48 -0700 From: Luigi Rizzo To: Nik Clayton Cc: Nate Williams , arch@FreeBSD.ORG Subject: Re: proposed code: automatic setting of hostname from MAC address Message-ID: <20020409225148.A68389@iguana.icir.org> References: <20020407035941.B37911@iguana.icir.org> <15538.12905.744914.71228@caddis.yogotech.com> <20020408235226.B57765@iguana.icir.org> <20020409203403.U30474@canyon.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020409203403.U30474@canyon.nothing-going-on.org> 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 08:34:03PM +0100, Nik Clayton wrote: ... > > The call to auto_set_hostname() in rc.conf will fetch the MAC address > > from the first ethernet card, look it up in a database of > > MAC<->hostname pairs (/etc/ethers, or /etc/hosts), and sets the > > "hostname" and "ifconfig_foo0" shell variables accordingly. From > > there on, rc.conf is absolutely the same as usual. > > Why not do this in /etc/rc.conf.local, which can be local to each > machine, with /etc/rc.conf being sitewide? rc.conf can be local as well. My whole point is try to have a single config file as opposed to 100 of them! cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message