summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/autoconfig')
-rw-r--r--init.d/autoconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/autoconfig b/init.d/autoconfig
index 15900c2..f475813 100644
--- a/init.d/autoconfig
+++ b/init.d/autoconfig
@@ -529,9 +529,9 @@ start() {
if yesno "${DHCP}"
then
einfo "DHCP broadcasting for IP on all detected interfaces ..."
- if [ -f /var/run/dhcpcd.pid ]
+ if [ ! -f /run/dhcpcd.pid ]
then
- kill $(cat /var/run/dhcpcd.pid)
+ kill $(cat /run/dhcpcd.pid)
sleep 2
fi
dhcpcd -n -h $(hostname)