]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Hostname documentation fixes, thanks to Olaf Seibert.
authorRoy Marples <roy@marples.name>
Tue, 14 Jun 2016 21:54:24 +0000 (21:54 +0000)
committerRoy Marples <roy@marples.name>
Tue, 14 Jun 2016 21:54:24 +0000 (21:54 +0000)
dhcp.c
dhcpcd.conf.5.in

diff --git a/dhcp.c b/dhcp.c
index 0fa35d7fda6f73763cb02feacc4ab6391359ad87..f7650adf108c046038efed1eece8fece7d09dacc 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2508,6 +2508,8 @@ dhcp_reboot(struct interface *ifp)
                eloop_timeout_add_sec(ifp->ctx->eloop,
                    ifo->reboot, ipv4ll_start, ifp);
 
+       logger(ifp->ctx, LOG_INFO, "DEBUG %llu %d\n", ifo->options & DHCPCD_LASTLEASE,
+           state->lease.frominfo);
        if (ifo->options & DHCPCD_LASTLEASE && state->lease.frominfo)
                eloop_timeout_add_sec(ifp->ctx->eloop,
                    ifo->reboot, dhcp_lastlease, ifp);
index 9e8640973a3c36964667b264f8e94e4aeef1bb64..fc51b4f59c7672539b5ee121483acba43cfdbbcb 100644 (file)
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd May 9, 2016
+.Dd June 14, 2016
 .Dt DHCPCD.CONF 5
 .Os
 .Sh NAME
@@ -155,7 +155,7 @@ should use with
 .Ic env
 .Va wpa_supplicant_driver=nl80211
 .Pp
-If the hostname is set, will be will set to the FQDN if possible as per
+If the hostname is set, it will be will set to the FQDN if possible as per
 RFC 4702 section 3.1.
 If the FQDN option is missing,
 .Nm dhcpcd
@@ -261,14 +261,14 @@ You can use this option to stop this from happening.
 Fallback to using this profile if DHCP fails.
 This allows you to configure a static profile instead of using ZeroConf.
 .It Ic hostname Ar name
-Sends
-.Ar hostname
+Sends the hostname
+.Ar name
 to the DHCP server so it can be registered in DNS.
 If
-.Ar hostname
+.Ar name
 is an empty string then the current system hostname is sent.
 If
-.Ar hostname
+.Ar name
 is a FQDN (ie, contains a .) then it will be encoded as such.
 .It Ic hostname_short
 Sends the short hostname to the DHCP server instead of the FQDN.