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.
This commit is contained in:
Gioele Barabucci 2023-08-14 08:53:16 +02:00
parent 3078ece8c4
commit 4a899c5a23

View 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