summaryrefslogtreecommitdiffstats
path: root/dhcpcd.sh.8.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-18 23:12:44 +0000
committerRoy Marples <roy@marples.name>2008-04-18 23:12:44 +0000
commitba9dfb7aaeb7eb870cfc1c93c4e519d58f082b75 (patch)
tree48e3d853d6b9e083ebda6703324a2053426a3c49 /dhcpcd.sh.8.in
parent7eb93bd9e42aa2d63c28e006f74ee19d0a13a31d (diff)
downloaddhcpcd-ba9dfb7aaeb7eb870cfc1c93c4e519d58f082b75.tar.xz
dhcpcd can now read a basic config file! Add a default dhcpcd.conf and matching man page. Add dhcpcd.sh man page. dhcpcd can now report variables it can send to dhcpcd.sh as well.
Diffstat (limited to 'dhcpcd.sh.8.in')
-rw-r--r--dhcpcd.sh.8.in98
1 files changed, 98 insertions, 0 deletions
diff --git a/dhcpcd.sh.8.in b/dhcpcd.sh.8.in
new file mode 100644
index 00000000..c76f4920
--- /dev/null
+++ b/dhcpcd.sh.8.in
@@ -0,0 +1,98 @@
+.\" Copyright 2006-2008 Roy Marples
+.\" All rights reserved
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd Apr 18, 2008
+.Dt DHCPCD.SH 8 SMM
+.Sh NAME
+.Nm dhcpcd.sh
+.Nd DHCP client configuration script
+.Sh DESCRIPTION
+.Nm
+is used by
+.Xr dhcpcd 8
+to configure
+.Pa /etc/resolv.conf
+and run any system or user defined hook scripts.
+Each time
+.Nm
+is invoked,
+.Ev $interface
+is set to the interface that
+.Nm dhcpcd
+is run on and
+.Ev $reason
+is to the reason why
+.Nm
+was invoked. DHCP information to be configured is held in variables starting
+with the word new_ and old DHCP information to be removed is held in variables
+starting with the word old_.
+.Nm dhcpcd
+can display the full list of variables it knows how about by using the
+.Fl V , -variables
+argument.
+.Pp
+Here's a list of reasons why
+.Nm
+could be invoked:
+.Bl -tag -width indent
+.It Dv BOUND
+dhcpcd obtained a new lease from a DHCP server.
+.It Dv RENEW
+dhcpcd renewed it's lease.
+.It Dv REBIND
+dhcpcd has rebound to a new DHCP server.
+.It Dv REBOOT
+dhcpcd successfully requested a lease from a DHCP server.
+.It Dv EXPIRE
+dhcpcd's lease expired and it failed to obtain a new one.
+.It Dv IPV4LL
+dhcpcd failed to contact any DHCP servers but did obtain an IPV4LL address.
+.It Dv FAIL
+dhcpcd failed to contact any DHCP servers or use an old lease.
+.It Dv TIMEOUT
+dhcpcd failed to contact any DHCP servers but was able to use an old lease.
+.It Dv TEST
+dhcpcd received an OFFER from a DHCP server but will not configure the
+interface. This is primarily used to test the variables are filled correctly
+for the script to process them.
+.El
+.Sh FILES
+Before
+.Nm
+runs, it loads
+.Pa @SYSCONFDIR/dhcpcd-enter-hook
+and any scripts found in
+.Pa @SYSCONFDIR/dhcpcd-enter-hook.d .
+Then it runs itself, configuring
+.Pa /etc/resolv.conf .
+Finally it loads
+.Pa @SYSCONFDIR/dhcpcd-exit-hook
+and any scripts found in
+.Pa @SYSCONFDIR/dhcpcd-exit-hook.d .
+.Sh SEE ALSO
+.Xr dhcpcd 8
+.Sh AUTHORS
+.An "Roy Marples" Aq roy@marples.name
+.Sh BUGS
+Please report them to http://bugs.marples.name