fixed loopback ip address flushing

pull/4/head
Artur Kraev 10 years ago
parent 2a9084401a
commit 04c91b7898

@ -196,8 +196,10 @@ deactivate_network()
IFACES=`/sbin/ifquery -la`
for i in $IFACES; do
/sbin/ifdown $i
/sbin/ip addr flush dev $i
if [ $i != 'lo' ]; then
/sbin/ifdown $i
/sbin/ip addr flush dev $i
fi
done
else
service networking stop

Loading…
Cancel
Save