Only check for carrier if state is still unknown.

This commit is contained in:
Roy Marples 2014-03-07 22:14:13 +00:00
parent 6b8f50f8cb
commit af975e6853

View File

@ -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;