From owner-cvs-all Mon Jan 25 14:38:45 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24321 for cvs-all-outgoing; Mon, 25 Jan 1999 14:38:45 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24315; Mon, 25 Jan 1999 14:38:43 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id OAA08049; Mon, 25 Jan 1999 14:33:58 -0800 (PST) (envelope-from dillon) Date: Mon, 25 Jan 1999 14:33:58 -0800 (PST) From: Matthew Dillon Message-Id: <199901252233.OAA08049@apollo.backplane.com> To: Poul-Henning Kamp Cc: Mike Smith , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern kern_mib.c References: <22574.917300357@critter.freebsd.dk> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk :Matt, : :I simply don't understand why you need this as a variable in the :first place, clearly if it is a "per-host" basis, you can :find it using `hostname` or similar methods ? : :While I am in general terms `pro` a registry of some kind, I will :strongy object to sysctl being used for registry tasks like this :one. : :A far better, and more UNIX like, way would be to mount a MFS on :some directory and stick the info there... In fact, I am using it exactly on an IP basis. The problem is figuring out the IP address. I'd gladly just build the whole smear into /etc/rc.conf, but it requiring running route and ifconfig to extract the machine's BOOTP-assigned IP address. If it is ok to run these inside /etc/rc.conf, then we don't have a problem. Do people have any objections to running ifconfig and route inside /etc/rc.conf to 'calculate' a machine-specific rc.conf.local path ? -Matt :Poul-Henning Kamp FreeBSD coreteam member -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message