mirror of
https://github.com/pygos/init.git
synced 2024-12-22 23:30:50 +01:00
Add service files for dhcpcd DHCP client
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
8c24e8c2ad
commit
d9c73520e3
3 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
6
services/dhcpcd
Normal file
6
services/dhcpcd
Normal file
|
@ -0,0 +1,6 @@
|
|||
description "DHCP client on %0"
|
||||
type once
|
||||
target boot
|
||||
after dhcpcdmaster
|
||||
|
||||
exec dhcpcd -n %0
|
9
services/dhcpcdmaster
Normal file
9
services/dhcpcdmaster
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue