mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-10 00:58:20 +03:00
If wait_operstate() is called super quickly after ip command, then the up/down state may not be changed and propagated to networkd, and wait_operstate() mistakenly pass with the previous state. To avoid such situation, wait for a while to make networkd actually detect the interface brought up/down.