summaryrefslogtreecommitdiff
path: root/src/network/networkd-wait-online.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-19 21:57:10 +0200
committerTom Gundersen <teg@jklm.no>2014-05-19 22:00:35 +0200
commit473dfd7bd5a74b4724818ab8a764c072335fd510 (patch)
tree87f13b49097740c7fb117df9004926a8da3d1d61 /src/network/networkd-wait-online.c
parente56f36380365b5825f0920b0f00a459edc0b2e84 (diff)
networkd-wait-online: wait for addresses to be configured
Diffstat (limited to 'src/network/networkd-wait-online.c')
-rw-r--r--src/network/networkd-wait-online.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-wait-online.c b/src/network/networkd-wait-online.c
index 3ea7a8384e..0b8e35d693 100644
--- a/src/network/networkd-wait-online.c
+++ b/src/network/networkd-wait-online.c
@@ -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;