]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs/NETWORK_ONLINE: Use `until` instead of `while !` 28827/head
authorGioele Barabucci <gioele@svario.it>
Mon, 14 Aug 2023 06:53:16 +0000 (08:53 +0200)
committerGioele Barabucci <gioele@svario.it>
Mon, 14 Aug 2023 07:15:31 +0000 (09:15 +0200)
`until` is the standard POSIX shell builtin to be used when waiting for
a condition to appear.

docs/NETWORK_ONLINE.md

index 74e610b0d1fb4edc08b077738e885d230097f72a..b249eb4402d4eec68913f51cbfd7ca6d15f185df 100644 (file)
@@ -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