diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-05-23 22:15:03 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-05-24 13:20:54 +0200 |
commit | d9c73520e35ec35e2de7beca3f20f8e8146806c1 (patch) | |
tree | 4485c7fd0fa9db7e8c29eb0d552d1025152f8290 | |
parent | 8c24e8c2ad65fcfe3096c91234b2be76e62ac607 (diff) |
Add service files for dhcpcd DHCP client
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
-rw-r--r-- | services/Makemodule.am | 2 | ||||
-rw-r--r-- | services/dhcpcd | 6 | ||||
-rw-r--r-- | services/dhcpcdmaster | 9 |
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 +} |