aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-24 18:14:07 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-24 18:14:07 +0100
commit98d5ba81be3b2eafa3865e727b058d3bce11e806 (patch)
treea2fbcb3a8cbc0e6f0f9dae00d98c402e8237c683 /services
parent244f4bbe7a03b8ce1f706e2481deaabcdf7c2b3c (diff)
dhcpcd: wait for master socket
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am2
-rw-r--r--services/dhcpcd.in (renamed from services/dhcpcd)5
2 files changed, 5 insertions, 2 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am
index 3baf46f..8bd2bb1 100644
--- a/services/Makemodule.am
+++ b/services/Makemodule.am
@@ -21,7 +21,7 @@ endif
EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
EXTRA_DIST += services/hwclock services/loopback services/klogd
EXTRA_DIST += services/sync services/sysctl services/tmpfs
-EXTRA_DIST += services/dhcpcd services/dhcpcdmaster services/unbound
+EXTRA_DIST += services/dhcpcdmaster services/unbound
EXTRA_DIST += services/usyslogd services/dnsmasq services/network
EXTRA_DIST += services/consolefont services/gcrond services/nginx
EXTRA_DIST += services/tmpfsrun
diff --git a/services/dhcpcd b/services/dhcpcd.in
index 184a843..0d83093 100644
--- a/services/dhcpcd
+++ b/services/dhcpcd.in
@@ -4,4 +4,7 @@ target boot
after dhcpcdmaster network
tty /dev/null
-exec dhcpcd -n %0
+exec {
+ "@SCRIPTDIR@/waitfile" 5 200 /run/dhcpcd.sock /run/dhcpcd.pid
+ dhcpcd -n %0
+}