diff options
author | Roy Marples <roy@marples.name> | 2009-12-14 14:21:30 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-12-14 14:21:30 +0000 |
commit | 084f5e12eb6d42560c28076c349afd780eab125b (patch) | |
tree | 5e8f5982757dff1592432aa9f42871b0678b8d9f | |
parent | 3b9eaea8ec0d069c20850e597e66bb68cddb877f (diff) |
Fix restart with iproute2
-rw-r--r-- | init.d/network.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/init.d/network.in b/init.d/network.in index bcbabc67..f32bcb4d 100644 --- a/init.d/network.in +++ b/init.d/network.in @@ -287,6 +287,11 @@ stop() then veinfo "$int" runargs /etc/ifdown."$int" "$downcmd" + if [ -x /sbin/ip ]; then + # We need to do this, otherwise we may + # fail to add things correctly on restart + ip address flush dev "$int" 2>/dev/null + fi ifconfig "$int" down 2>/dev/null ifconfig "$int" destroy 2>/dev/null fi |