From 4a899c5a239eb50df3f596af4ff145f4a2d33f23 Mon Sep 17 00:00:00 2001 From: Gioele Barabucci Date: Mon, 14 Aug 2023 08:53:16 +0200 Subject: [PATCH] docs/NETWORK_ONLINE: Use `until` instead of `while !` `until` is the standard POSIX shell builtin to be used when waiting for a condition to appear. --- docs/NETWORK_ONLINE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/NETWORK_ONLINE.md b/docs/NETWORK_ONLINE.md index 74e610b0d1f..b249eb4402d 100644 --- a/docs/NETWORK_ONLINE.md +++ b/docs/NETWORK_ONLINE.md @@ -256,7 +256,7 @@ Before=network-online.target [Service] Type=oneshot RemainAfterExit=yes -ExecStart=sh -c 'while ! ping -c 1 example.com; do sleep 1; done' +ExecStart=sh -c 'until ping -c 1 example.com; do sleep 1; done' [Install] WantedBy=network-online.target