1 |
commit: b56c91635b59314f97184d726f93249da594731b |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 25 23:10:40 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 25 23:10:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=b56c9163 |
7 |
|
8 |
autoconfig: mostly revert "Fix logic error" |
9 |
|
10 |
This particular piece of logic was correct already, having been reworked |
11 |
a few times since the original bug report about it. The intent is to |
12 |
kill existing an existing dhcpcd instance if the pidfile is found. |
13 |
|
14 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
15 |
|
16 |
init.d/autoconfig | 2 +- |
17 |
1 file changed, 1 insertion(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/init.d/autoconfig b/init.d/autoconfig |
20 |
index f475813..b30b41b 100644 |
21 |
--- a/init.d/autoconfig |
22 |
+++ b/init.d/autoconfig |
23 |
@@ -529,7 +529,7 @@ start() { |
24 |
if yesno "${DHCP}" |
25 |
then |
26 |
einfo "DHCP broadcasting for IP on all detected interfaces ..." |
27 |
- if [ ! -f /run/dhcpcd.pid ] |
28 |
+ if [ -f /run/dhcpcd.pid ] |
29 |
then |
30 |
kill $(cat /run/dhcpcd.pid) |
31 |
sleep 2 |