/[pkgs]/devel/dhcp/README.dhclient.d
ViewVC logotype

Contents of /devel/dhcp/README.dhclient.d

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Wed Feb 18 04:12:59 2009 UTC (9 months ago) by dcantrel
Branch: MAIN
CVS Tags: F-12-split, dhcp-4_1_0-22_fc12, dhcp-4_1_0-20_fc12, dhcp-4_1_0p1-5_fc12, dhcp-4_1_0-16_fc11, dhcp-4_1_0p1-13_fc13, dhcp-4_1_0-11_fc11, dhcp-4_1_0p1-11_fc12, dhcp-4_1_0-10_fc11, dhcp-4_1_0-15_fc11, dhcp-4_1_0-12_fc11, dhcp-4_1_0-14_fc11, F-11-split, dhcp-4_1_0p1-6_fc12, dhcp-4_1_0p1-7_fc12, dhcp-4_1_0p1-8_fc12, dhcp-4_1_0p1-4_fc12, dhcp-4_1_0-13_fc11, dhcp-4_1_0-18_fc12, dhcp-4_1_0p1-14_fc13, dhcp-4_1_0-23_fc12, dhcp-4_1_0-6_fc11, dhcp-4_1_0-17_fc12, dhcp-4_1_0-19_fc12, dhcp-4_1_0p1-1_fc12, dhcp-4_1_0p1-3_fc12, dhcp-4_1_0p1-9_fc12, dhcp-4_1_0-9_fc11, dhcp-4_1_0p1-12_fc13, dhcp-4_1_0-26_fc12, dhcp-4_1_0p1-10_fc12, dhcp-4_1_0-8_fc11, dhcp-4_1_0-25_fc12, dhcp-4_1_0-24_fc12, dhcp-4_1_0-7_fc11, dhcp-4_1_0-27_fc12, dhcp-4_1_0-21_fc12, dhcp-4_1_0p1-2_fc12, HEAD
File MIME type: text/x-dsrc
* Mon Feb 16 2009 David Cantrell <dcantrell@redhat.com> - 12:4.1.0-6
- Enable dhcpv6 support (#480798)
- Fix config file migration in scriptlets (#480543)
- Allow dhclient-script expansion with /etc/dhcp/dhclient.d/*.sh scripts
1 The /etc/dhcp/dhclient.d directory allows other packages and system
2 administrators to create application-specific option handlers for dhclient.
3
4 When dhclient is run, any option listed in the dhcp-options(5) man page can
5 be requested. dhclient-script does not handle every option available
6 because doing so would make the script unmaintainable as the components
7 using those options might change over time. The knowledge of how to handle
8 those options should be under the responsibility of the package maintainer
9 for that component (e.g., NTP options belong in a handler in the ntp
10 package).
11
12 To make maintenance easier, application specific DHCP options can be handled
13 by creating a script with two functions and placing it in /etc/dhcp/dhclient.d
14
15 The script must follow a specific form:
16
17 (1) The script must be named NAME.sh. NAME can be anything, but it makes
18 sense to name it for the service it handles. e.g., ntp.sh
19
20 (2) The script must provide a NAME_config() function to read the options and
21 do whatever it takes to put those options in place.
22
23 (3) The script must provide a NAME_restore() function to restore original
24 configuration state when dhclient stops.
25
26 (4) The script must be 'chmod +x' or dhclient-script will ignore it.
27
28 The scripts execute in the same environment as dhclient-script. That means
29 all of the functions and variables available to it are available to your
30 NAME.sh script. Things of note:
31
32 ${SAVEDIR} is where original configuration files are saved. Save your
33 original configuration files here before you take the DHCP provided
34 values and generate new files.
35
36 Variables set in /etc/sysconfig/network, /etc/sysconfig/networking/network,
37 and /etc/sysconfig/network-scripts/ifcfg-$interface are available to
38 you.
39
40 See the scripts in /etc/dhcp/dhclient.d for examples.
41
42 NOTE: Do not use functions defined in /sbin/dhclient-script. Consider
43 dhclient-script a black box. This script may change over time, so the
44 dhclient.d scripts should not be using functions defined in it.
45
46 --
47 David Cantrell <dcantrell@redhat.com>

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2