summaryrefslogtreecommitdiff
path: root/src/network/wait-online/wait-online.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/wait-online/wait-online.c')
-rw-r--r--src/network/wait-online/wait-online.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/wait-online/wait-online.c b/src/network/wait-online/wait-online.c
index c65b885d2c..a60f384624 100644
--- a/src/network/wait-online/wait-online.c
+++ b/src/network/wait-online/wait-online.c
@@ -223,6 +223,8 @@ static int run(int argc, char *argv[]) {
"STATUS=Failed to wait for network connectivity...");
r = sd_event_loop(m->event);
+ if (r == -ETIMEDOUT)
+ return log_error_errno(r, "Timeout occured while waiting for network connectivity.");
if (r < 0)
return log_error_errno(r, "Event loop failed: %m");