diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2019-11-16 23:10:37 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-11-18 23:29:59 -0600 |
commit | 91d708c9769cd307dd35980616131d04d38a66fa (patch) | |
tree | 03ef55963b09cf2bbe318bee8d1cee88e0b61b40 /rc.inet1 | |
parent | f24705a9aa3915341762f531761f17b5cb1e95c2 (diff) | |
download | slacknetsetup-91d708c9769cd307dd35980616131d04d38a66fa.tar.xz |
Flush interface before applying any IPs.
Thanks to abga on LQ.
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |