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` IFACES=`/sbin/ifquery -la`
for i in $IFACES; do for i in $IFACES; do
/sbin/ifdown $i if [ $i != 'lo' ]; then
/sbin/ip addr flush dev $i /sbin/ifdown $i
/sbin/ip addr flush dev $i
fi
done done
else else
service networking stop service networking stop

Loading…
Cancel
Save