Mercurial > hg > dhcpcd
changeset 955:828e54f73394 draft
Check carrier when starting reboot.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sat, 06 Sep 2008 19:41:05 +0000 |
| parents | 2f3a1145cdf1 |
| children | d3c7e3e5c40b |
| files | dhcpcd.c |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcpcd.c Sat Sep 06 19:24:40 2008 +0000 +++ b/dhcpcd.c Sat Sep 06 19:41:05 2008 +0000 @@ -655,6 +655,10 @@ { 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;
