From: Gioele Barabucci Date: Mon, 14 Aug 2023 06:53:16 +0000 (+0200) Subject: docs/NETWORK_ONLINE: Use `until` instead of `while !` X-Git-Tag: v255-rc1~730^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F28827%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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