Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs/releng/root-image/etc
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-10-05 11:32:28 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-10-05 11:32:28 +0200
commit41def4c27d8eb859ace91c00eefa915dbb4c38fc (patch)
treed128906ed2071c85d10f3c2a466f90062eee27c4 /configs/releng/root-image/etc
parentd2e69f4a4a54cf63e57c672919a2e714eb601d36 (diff)
Run dhcpcd on all devices
As we did with initscripts, run dhcpcd on all devices and not just eth0. Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'configs/releng/root-image/etc')
-rw-r--r--configs/releng/root-image/etc/conf.d/dhcpcd6
-rw-r--r--configs/releng/root-image/etc/systemd/system/dhcpcd.service13
2 files changed, 13 insertions, 6 deletions
diff --git a/configs/releng/root-image/etc/conf.d/dhcpcd b/configs/releng/root-image/etc/conf.d/dhcpcd
deleted file mode 100644
index 76b56ff..0000000
--- a/configs/releng/root-image/etc/conf.d/dhcpcd
+++ /dev/null
@@ -1,6 +0,0 @@
-#
-# Arguments to be passed to the DHCP client daemon
-#
-
-DHCPCD_ARGS="-qb"
-
diff --git a/configs/releng/root-image/etc/systemd/system/dhcpcd.service b/configs/releng/root-image/etc/systemd/system/dhcpcd.service
new file mode 100644
index 0000000..dd030d5
--- /dev/null
+++ b/configs/releng/root-image/etc/systemd/system/dhcpcd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=dhcpcd on all interfaces
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpcd.pid
+ExecStart=/sbin/dhcpcd -A -b -q
+ExecStop=/sbin/dhcpcd -k
+
+[Install]
+WantedBy=multi-user.target