summaryrefslogtreecommitdiffstats
path: root/core/modules/dhcpc-busybox
diff options
context:
space:
mode:
authorSimon Rettberg2020-10-01 14:26:06 +0200
committerSimon Rettberg2020-10-01 14:26:06 +0200
commitc38131e959aed97ad8ad800daf42ce2dfc21c4c0 (patch)
treea9fa374e495d54d3cb048877a912edcff03d6d86 /core/modules/dhcpc-busybox
parent[systemd-default-path] fix copy&pasta (diff)
downloadmltk-c38131e959aed97ad8ad800daf42ce2dfc21c4c0.tar.gz
mltk-c38131e959aed97ad8ad800daf42ce2dfc21c4c0.tar.xz
mltk-c38131e959aed97ad8ad800daf42ce2dfc21c4c0.zip
[systemd] Move network-interface service/udevrule to dhcpc-busybox
Diffstat (limited to 'core/modules/dhcpc-busybox')
-rw-r--r--core/modules/dhcpc-busybox/data/etc/systemd/system/network-interface@.service9
-rw-r--r--core/modules/dhcpc-busybox/data/etc/udev/rules.d/99-openslx-net.rules1
2 files changed, 10 insertions, 0 deletions
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"