mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-28 04:25:19 +08:00
Only check for carrier if state is still unknown.
This commit is contained in:
parent
6b8f50f8cb
commit
af975e6853
3
dhcpcd.c
3
dhcpcd.c
@ -578,7 +578,8 @@ start_interface(void *arg)
|
||||
size_t i;
|
||||
char buf[DUID_LEN * 3];
|
||||
|
||||
handle_carrier(ifp->ctx, LINK_UNKNOWN, 0, ifp->name);
|
||||
if (ifp->carrier == LINK_UNKNOWN)
|
||||
handle_carrier(ifp->ctx, LINK_UNKNOWN, 0, ifp->name);
|
||||
if (ifp->carrier == LINK_DOWN) {
|
||||
syslog(LOG_INFO, "%s: waiting for carrier", ifp->name);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user