Should the entire environment passed to dhclient be available to dhclient-script?
Andrew Pollock
apollock at debian.org
Thu Sep 15 11:33:20 UTC 2005
On Wed, Sep 14, 2005 at 08:44:12AM -0700, Ted Lemon wrote:
> On Sep 14, 2005, at 4:52 AM, Andrew Pollock wrote:
> > Bug or feature?
>
> Feature. dhclient builds its own environment before invoking any
> scripts, so as to avoid the possibility of passing random goo to the
> client script. If you want to add something to the script
> environment, use the -e flag: dhclient ... -e IF_METRIC=1, for example.
>
> I see that this is not mentioned in the man page. Sigh. This
> would be my fault, not David's. :'(
>
Hmm, well, that really breaks the intended functionality in this case :-(
Any chance of a command-line option to override this feature in the future?
regards
Andrew
More information about the dhcp-hackers
mailing list