OSDN Git Service

Allow systemd-networkd-wait-online to succeed with one interface v45
authornl6720 <nl6720@gmail.com>
Tue, 30 Jun 2020 16:55:58 +0000 (19:55 +0300)
committernl6720 <nl6720@gmail.com>
Tue, 30 Jun 2020 17:53:00 +0000 (20:53 +0300)
It is enough if one network interface is online, there is no need to wait for all of them.
Without this, when connecting with Wi-Fi and leaving Ethernet disconnected, the network-online.target will get unnecessarily delayed.

configs/releng/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf [new file with mode: 0644]

diff --git a/configs/releng/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf b/configs/releng/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf
new file mode 100644 (file)
index 0000000..c875311
--- /dev/null
@@ -0,0 +1,3 @@
+[Service]
+ExecStart=
+ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any