Fix restart with iproute2

This commit is contained in:
Roy Marples 2009-12-14 14:21:30 +00:00
parent 3b9eaea8ec
commit 084f5e12eb

View File

@ -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