summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-16 23:10:37 +0000
committerRobby Workman <rworkman@slackware.com>2019-11-18 23:29:59 -0600
commit91d708c9769cd307dd35980616131d04d38a66fa (patch)
tree03ef55963b09cf2bbe318bee8d1cee88e0b61b40
parentf24705a9aa3915341762f531761f17b5cb1e95c2 (diff)
downloadslacknetsetup-91d708c9769cd307dd35980616131d04d38a66fa.tar.xz
Flush interface before applying any IPs.
Thanks to abga on LQ.
-rw-r--r--rc.inet12
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.inet1 b/rc.inet1
index e61aa26..b19d017 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -320,6 +320,8 @@ if_up() {
echo "0" >/proc/sys/net/ipv6/conf/${1}/accept_ra
fi
fi
+ debug_log "/sbin/ip address flush dev ${1}"
+ /sbin/ip address flush dev ${1}
IF_UP=0
# Slackware historically favours dynamic configuration over fixed IP to configure interfaces, so keep that tradition:
if [ "${USE_DHCP[$i]}" = "yes" ] || { [ -e /proc/sys/net/ipv6 ] && [ "${USE_DHCP6[$i]}" = "yes" ]; }; then # use dhcpcd