summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--src/timesync/timesyncd.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/TODO b/TODO
index 0798065369..9a50afbe8e 100644
--- a/TODO
+++ b/TODO
@@ -40,7 +40,6 @@ Features:
* timesyncd:
- hookup with networkd: NTP servers from dhcp
- - hookup with networkd: listen to online/offline state
* a way for container managers to turn off getty starting via $container_headless= or so...
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c
index 6e63e34d87..6dcd942ec1 100644
--- a/src/timesync/timesyncd.c
+++ b/src/timesync/timesyncd.c
@@ -1070,7 +1070,7 @@ static bool network_is_online(void) {
int r;
r = sd_network_get_operational_state(&state);
- if (r >= 0 && streq("carrier", state))
+ if (r >= 0 && (streq("routable", state) || streq("degraded", state)))
return true;
else
return false;