Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96000 - baselayout does not run dhclient exit hooks
Summary: baselayout does not run dhclient exit hooks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Low enhancement
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-06-13 12:06 UTC by Richard Fish
Modified: 2005-07-19 08:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed fix. (dhclient-udhcpc-wrapper.patch,429 bytes, patch)
2005-06-13 12:07 UTC, Richard Fish
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Fish 2005-06-13 12:06:51 UTC
The main benefit of dhclient is it's extreme scriptabilty, giving a configuration script access to all of the options described in 'man dhcp-options' if provided by the server.

I use this feature to dynamically configure DNS forwards in my local server, the WINS servers for Samba, and other things, through /etc/dhcp/dhclient-exit-hooks script.

The new baselayout prevents this script from running however.  Note that the postup and predown functions are not substitutes, as the dhcp option variables are not available to those functions.

A simple fix is to run /etc/dhcp/dhclient-exit-hooks from the dhclient-udhcpc-wrapper script.  Proposed patch will be attached shortly.
Comment 1 Richard Fish 2005-06-13 12:07:52 UTC
Created attachment 61162 [details, diff]
Proposed fix.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-06-14 02:40:38 UTC
Thanks for the patch - I've applied it to our SVN repo.
Will be in baselayout-1.11.13
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-07-19 08:36:55 UTC
baselayout-1.11.13 is out