1 .\" Copyright (c) 2006-2009 Roy Marples
2 .\" All rights reserved
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .Dt DHCPCD-RUN-HOOKS 8 SMM
30 .Nd DHCP client configuration script
35 to run any system and user defined hook scripts.
36 System hook scripts are found in
38 and the user defined hooks are
39 .Pa @SYSCONFDIR@/dhcpcd.enter-hook .
41 .Pa @SYSCONFDIR@/dhcpcd.exit-hook .
42 The default install supplies hook scripts for configuring
45 Your distribution may have included other hook scripts to say configure
47 A test hook is also supplied that simply echos the dhcp variables to the
48 console from DISCOVER message.
54 is set to the interface that
61 DHCP information to be configured is held in variables starting with the word
62 new_ and old DHCP information to be removed is held in variables starting with
65 can display the full list of variables it knows how about by using the
69 Here's a list of reasons why
72 .Bl -tag -width PREINIT
74 dhcpcd is starting up and any pre-initialisation should be done.
76 dhcpcd has detected the carrier is up.
77 This is generally just a notification and no action need be taken.
79 dhcpcd informed a DHCP server about it's address and obtained other
80 configuration details.
82 dhcpcd obtained a new lease from a DHCP server.
84 dhcpcd renewed it's lease.
86 dhcpcd has rebound to a new DHCP server.
88 dhcpcd successfully requested a lease from a DHCP server.
90 dhcpcd failed to contact any DHCP servers but did obtain an IPV4LL address.
92 dhcpcd has been configured with a static configuration which has not been
93 obtained from a DHCP server.
95 dhcpcd is monitoring the interface for a 3rd party to give it an IP address.
97 dhcpcd failed to contact any DHCP servers but was able to use an old lease.
99 dhcpcd's lease or state expired and it failed to obtain a new one.
101 dhcpcd received a NAK from the DHCP server.
102 This should be treated as EXPIRE.
104 dhcpcd lost the carrier.
105 The cable may have been unplugged or association to the wireless point lost.
107 dhcpcd failed to operate on the interface.
108 This normally happens when dhcpcd does not support the raw interface, which
109 means it cannot work as a DHCP or ZeroConf client.
110 Static configuration and DHCP INFORM is still allowed.
112 dhcpcd stopped running on the interface.
114 dhcpcd received an OFFER from a DHCP server but will not configure the
116 This is primarily used to test the variables are filled correctly for the
117 script to process them.
123 .Pa @SYSCONFDIR@/dhcpcd.enter-hook
124 and any scripts found in
126 in a lexical order and then finally
127 .Pa @SYSCONFDIR@/dhcpcd.exit-hook
131 .An Roy Marples Aq roy@marples.name
133 Please report them to http://roy.marples.name/projects/dhcpcd