Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2000 16:14:15 -0800
From:      "Jordan K. Hubbard" <jkh@zippy.cdrom.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: Problems installing FreeBSD 4.0 20000125-CURRENT 
Message-ID:  <46198.949018455@zippy.cdrom.com>
In-Reply-To: Your message of "Thu, 27 Jan 2000 18:25:30 EST." <200001272325.SAA60073@server.baldwin.cx> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Why not check to see what the hostname is after dhclient is run and then
> stick that name in the network setup dialog box.  If the user does edit
> the hostname themselves, then you can flag that event.

That would work in that one specific case with that specific dhcp server.
Now change the dhcp server post-install time and watch what happens. :-)

What is clearly needed is some idea of "fallback hostname" vs the one
you *might* be automatically assigned by "something else" (one current
value for something else being DHCP) and should probably use
preferentially.  Split the hostname into two variables and do the
appropriate rc dance magic, off ya go.

Of course, this also fails to address a more fundamental failing in
our rc scripts, this being that the concept of "network identity" is
currently handled in too simplistic a fashion.  When dealing with the
"local vs on the road" scenario, many laptop users (including myself)
end up hand-editing their rc.conf files or adding some cheesy menu to
the rc files which say, in effect, "choose one of the following canned
configurations" and then go work the appropriate variable-setting
magic.  The fact that I've seen so many people re-invent this
particular wheel also sends a strong hint that a better, more general,
mechanism is now overdue.  As the original architect of FreeBSD's
rc.conf (nee /etc/sysconfig) mechanism, I can also say with some
assurance that it's reached its limits. :)

- Jordan


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46198.949018455>