From c38131e959aed97ad8ad800daf42ce2dfc21c4c0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 1 Oct 2020 14:26:06 +0200 Subject: [systemd] Move network-interface service/udevrule to dhcpc-busybox --- .../data/etc/systemd/system/network-interface@.service | 9 +++++++++ .../dhcpc-busybox/data/etc/udev/rules.d/99-openslx-net.rules | 1 + 2 files changed, 10 insertions(+) create mode 100644 core/modules/dhcpc-busybox/data/etc/systemd/system/network-interface@.service create mode 100644 core/modules/dhcpc-busybox/data/etc/udev/rules.d/99-openslx-net.rules (limited to 'core/modules/dhcpc-busybox') diff --git a/core/modules/dhcpc-busybox/data/etc/systemd/system/network-interface@.service b/core/modules/dhcpc-busybox/data/etc/systemd/system/network-interface@.service new file mode 100644 index 00000000..c566eda1 --- /dev/null +++ b/core/modules/dhcpc-busybox/data/etc/systemd/system/network-interface@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Brings interface %i up +Wants=dhcpc@%i.service +Before=dhcpc@%i.service + +[Service] +Type=oneshot +ExecStart=/opt/openslx/sbin/ip link set dev %i up + diff --git a/core/modules/dhcpc-busybox/data/etc/udev/rules.d/99-openslx-net.rules b/core/modules/dhcpc-busybox/data/etc/udev/rules.d/99-openslx-net.rules new file mode 100644 index 00000000..2b65f37f --- /dev/null +++ b/core/modules/dhcpc-busybox/data/etc/udev/rules.d/99-openslx-net.rules @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="net", KERNEL=="br0", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/$name", ENV{SYSTEMD_WANTS}="network-interface@$name.service" -- cgit v1.2.3-55-g7522