aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am2
-rw-r--r--services/dhcpcd6
-rw-r--r--services/dhcpcdmaster9
3 files changed, 17 insertions, 0 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am
index fa51235..74a7c40 100644
--- a/services/Makemodule.am
+++ b/services/Makemodule.am
@@ -5,7 +5,9 @@ init_DATA += services/reboot services/shutdown services/sigkill
init_DATA += services/sigterm services/sync services/devfs
init_DATA += services/sysfs services/procfs services/tmpfs
init_DATA += services/vfs services/ifrename services/ifcfg
+init_DATA += services/dhcpcd services/dhcpcdmaster
EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
EXTRA_DIST += services/hwclock services/loopback services/reboot
EXTRA_DIST += services/shutdown services/sync services/sysctl services/tmpfs
+EXTRA_DIST += services/dhcpcd services/dhcpcdmaster
diff --git a/services/dhcpcd b/services/dhcpcd
new file mode 100644
index 0000000..c08fac0
--- /dev/null
+++ b/services/dhcpcd
@@ -0,0 +1,6 @@
+description "DHCP client on %0"
+type once
+target boot
+after dhcpcdmaster
+
+exec dhcpcd -n %0
diff --git a/services/dhcpcdmaster b/services/dhcpcdmaster
new file mode 100644
index 0000000..6d0fecd
--- /dev/null
+++ b/services/dhcpcdmaster
@@ -0,0 +1,9 @@
+description "DHCP client - master service"
+type wait
+target boot
+after sysinit ifrename ifcfg
+
+exec {
+ mkdir -p /var/db/dhcpcd
+ dhcpcd --inactive
+}