Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from RaveNoX/master
Browse files Browse the repository at this point in the history
Fixed loopback ip address flushing
  • Loading branch information
jfontan committed Sep 5, 2014
2 parents 2a90844 + 04c91b7 commit d99a361
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base_deb/etc/one-context.d/00-network
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d99a361

Please sign in to comment.