summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2018-07-31 22:11:48 +0100
committerRobby Workman <rworkman@slackware.com>2018-11-25 19:48:54 -0600
commit287fda1e7803e757047e49d4deef423bb05faa41 (patch)
tree39c47f055ab49c0c0edc850cfc086f6195487056 /rc.inet1
parent93c7cc7b5949d00a944d3e7cd6cbc9fa2cfabbb1 (diff)
downloadslacknetsetup-287fda1e7803e757047e49d4deef423bb05faa41.tar.xz
Increase sleep time after dhcpcd is killed
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'rc.inet1')
-rw-r--r--rc.inet11
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.inet1 b/rc.inet1
index 6c494d2..10f97d8 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -316,6 +316,7 @@ if_down() {
if ! /sbin/dhcpcd $DHCP_OPTIONS -k -d ${1} 2>/dev/null; then
echo "/etc/rc.d/rc.inet1: failed to stop dhcpcd for interface ${1}" | $LOGGER
fi
+ sleep 2
fi
if [ -n "${IPADDR[$i]}" ] || [ -n "${IPADDR6[$i]}" ]; then # flush any fixed IPs
echo "/etc/rc.d/rc.inet1: /sbin/ip address flush dev ${1}" | $LOGGER