networkd-wait-online: wait for addresses to be configured

This commit is contained in:
Tom Gundersen
2014-05-19 22:00:35 +02:00
parent e56f363803
commit 473dfd7bd5
2 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -183,7 +183,9 @@ static bool all_configured(Manager *m) {
return false;
r = sd_network_get_link_operational_state(indices[i], &oper_state);
if (r >= 0 && streq(oper_state, "carrier"))
if (r >= 0 &&
(streq(oper_state, "degraded") ||
streq(oper_state, "routable")))
/* we wait for at least one link to be ready,
regardless of who manages it */
one_ready = true;