Directory-based client configuration
Kenneth Porter
shiva at sewingwitch.com
Tue Dec 9 15:00:15 UTC 2003
--On Sunday, December 07, 2003 10:08 PM -0500 Michael Richardson
<mcr at sandelman.ottawa.on.ca> wrote:
> Kenneth> place. Isn't the resolv.conf and ntp.conf code wholly-owned
> by Kenneth> the DHCP
> Kenneth> package right now? Factoring these into separate scripts also
> Kenneth> allows them
>
> Absolutely not.
> Not only does DHCP not own them, but ppp's "ip-up" has legitimate
> reason to edit them, as do all of the *distro* and OS specific system
> admin packages.
Are we talking at cross-purposes? I was referring to the code within
dhclient-script that edits the config files, and that I'm proposing
separating into distinct scripts. Not the config files themselves.
What I was proposing was to take the resolv.conf-editing code from
dhclient-script and move it to /etc/dhclient.d/resolv.conf (or other
reasonable name) and make that script part of a subpackage that a distro
can choose to replace. Similarly, the ntpd.conf rewriter can be replaced
with a file supplied by the ntpd package.
dhclient-script then becomes little more than a loop that executes each
script in /etc/dhclient.d, similar to run-parts (which I posted recently).
More information about the dhcp-hackers
mailing list