OSDN Git Service

[add] systemd service (archiso 45)
authorhayao <shun819.mail@gmail.com>
Wed, 29 Jul 2020 08:43:30 +0000 (17:43 +0900)
committerhayao <shun819.mail@gmail.com>
Wed, 29 Jul 2020 08:43:30 +0000 (17:43 +0900)
Allow systemd-networkd-wait-online to succeed with one interface

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.

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

diff --git a/channels/share/airootfs.any/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf b/channels/share/airootfs.any/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf
new file mode 100644 (file)
index 0000000..0b3eeb8
--- /dev/null
@@ -0,0 +1,3 @@
+[Service]
+ExecStart=
+ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any
\ No newline at end of file