diff options
author | 2020-11-05 19:27:40 -0500 | |
---|---|---|
committer | 2020-11-05 19:29:07 -0500 | |
commit | 58948705bcf5136401621a8855e9f0c15049e1dd (patch) | |
tree | eb527a1655f9630b2d6629a56d03143540faf289 | |
parent | autoconfig: don't autostart gpm if /dev/input/mice is not present (diff) | |
download | livecd-tools-58948705bcf5136401621a8855e9f0c15049e1dd.tar.gz livecd-tools-58948705bcf5136401621a8855e9f0c15049e1dd.tar.bz2 livecd-tools-58948705bcf5136401621a8855e9f0c15049e1dd.zip |
autoconfig: Fix logic error2.7
When the system starts, the PID file will not exist because we haven't
started dhcpcd. Also update /var/run -> /run while we're here.
Closes: https://bugs.gentoo.org/198083
Closes: https://bugs.gentoo.org/439912
Signed-off-by: Matt Turner <mattst88@gentoo.org>
-rw-r--r-- | init.d/autoconfig | 4 |
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) |