commit:     b56c91635b59314f97184d726f93249da594731b
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 25 23:10:40 2021 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 23:10:40 2021 +0000
URL:        https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=b56c9163

autoconfig: mostly revert "Fix logic error"

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 <AT> gentoo.org>

 init.d/autoconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

Reply via email to