From e2ec97c077aba0f45cd09ca3110eae35dc46e07b Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Fri, 12 Jul 2013 22:21:29 +0200 Subject: Flush routing tables in ip_unset (FS#35638) This adds to 032df. Custom and automatically (in case of IPv6) added routes are now deleted when the interface is brought down. --- src/lib/ip | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib') diff --git a/src/lib/ip b/src/lib/ip index e144ee3..b627739 100644 --- a/src/lib/ip +++ b/src/lib/ip @@ -199,6 +199,8 @@ ip_unset() { fi [[ $DNS ]] && resolvconf -d "$Interface" + ip route flush dev "$Interface" &>/dev/null + ip -6 route flush dev "$Interface" &>/dev/null ip addr flush dev "$Interface" scope host &>/dev/null ip addr flush dev "$Interface" scope site &>/dev/null ip addr flush dev "$Interface" scope global &>/dev/null -- cgit v1.2.3-24-g4f1b