diff options
author | Ben Kohler <bkohler@gentoo.org> | 2021-02-25 17:10:40 -0600 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2021-02-25 17:10:40 -0600 |
commit | b56c91635b59314f97184d726f93249da594731b (patch) | |
tree | 2c4318c00a651f1c468fd7597abce0c5588e7ca5 | |
parent | unmute: Rewrite without awk (diff) | |
download | livecd-tools-b56c91635b59314f97184d726f93249da594731b.tar.gz livecd-tools-b56c91635b59314f97184d726f93249da594731b.tar.bz2 livecd-tools-b56c91635b59314f97184d726f93249da594731b.zip |
autoconfig: mostly revert "Fix logic error"2.9
This particular piece of logic was correct already, having been reworked
a few times since the original bug report about it. The intent is to
kill existing an existing dhcpcd instance if the pidfile is found.
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
-rw-r--r-- | init.d/autoconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/autoconfig b/init.d/autoconfig index f475813..b30b41b 100644 --- a/init.d/autoconfig +++ b/init.d/autoconfig @@ -529,7 +529,7 @@ start() { if yesno "${DHCP}" then einfo "DHCP broadcasting for IP on all detected interfaces ..." - if [ ! -f /run/dhcpcd.pid ] + if [ -f /run/dhcpcd.pid ] then kill $(cat /run/dhcpcd.pid) sleep 2 |