From: Roy Marples Date: Sat, 6 Sep 2008 19:41:05 +0000 (+0000) Subject: Check carrier when starting reboot. X-Git-Tag: v5.0.0~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64c6e1eb18db57252fb4dbdde81f25973beba4ff;p=thirdparty%2Fdhcpcd.git Check carrier when starting reboot. --- diff --git a/dhcpcd.c b/dhcpcd.c index 9b952b48..7d6c35a1 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -655,6 +655,10 @@ start_reboot(struct interface *iface) { struct if_options *ifo = iface->state->options; + if (ifo->options & DHCPCD_LINK && iface->state->carrier == LINK_DOWN) { + syslog(LOG_INFO, "%s: waiting for carrier", iface->name); + return; + } syslog(LOG_INFO, "%s: rebinding lease of %s", iface->name, inet_ntoa(iface->state->lease.addr)); iface->state->state = DHS_REBINDING;