From 109548453273782d8c33b1643c900f07f6898c5d Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Thu, 18 Oct 2018 15:43:24 +0100 Subject: 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 --- rc.inet1 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rc.inet1') diff --git a/rc.inet1 b/rc.inet1 index 6f3df52..a16c047 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -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 -- cgit v1.2.3