Fix restart with iproute2
This commit is contained in:
parent
3b9eaea8ec
commit
084f5e12eb
@ -287,6 +287,11 @@ stop()
|
|||||||
then
|
then
|
||||||
veinfo "$int"
|
veinfo "$int"
|
||||||
runargs /etc/ifdown."$int" "$downcmd"
|
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" down 2>/dev/null
|
||||||
ifconfig "$int" destroy 2>/dev/null
|
ifconfig "$int" destroy 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user