diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2018-10-18 15:43:24 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2018-11-26 02:04:37 -0600 |
commit | 109548453273782d8c33b1643c900f07f6898c5d (patch) | |
tree | d4130c53de60fd27be790c18999cf2fe401541c1 | |
parent | 65f284e1f0a1f6aee4374cd8aa64e9a15b1a9390 (diff) | |
download | slacknetsetup-109548453273782d8c33b1643c900f07f6898c5d.tar.xz |
Flush ip addresses on lo when taking interfaces down
This prevents an annoying "RTNETLINK answers: File exists" warning
when restarting networking
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -91,6 +91,8 @@ lo_up() { # Function to take down the loopback interface: lo_down() { if [ -e /sys/class/net/lo ]; then + echo "/etc/rc.d/rc.inet1: /sbin/ip address flush dev lo" | $LOGGER + /sbin/ip address flush dev lo echo "/etc/rc.d/rc.inet1: /sbin/ip link set dev lo down" | $LOGGER /sbin/ip link set dev lo down fi |