Merge pull request #4 from RaveNoX/master

Fixed loopback ip address flushing
pull/6/head
Javi Fontan 10 years ago
commit d99a361bd8

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