From 04c91b78984f4db4c632e982c67da5ca51877594 Mon Sep 17 00:00:00 2001 From: Artur Kraev Date: Mon, 1 Sep 2014 18:34:23 +0400 Subject: [PATCH] fixed loopback ip address flushing --- base_deb/etc/one-context.d/00-network | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base_deb/etc/one-context.d/00-network b/base_deb/etc/one-context.d/00-network index 5898e03..f4a9161 100755 --- a/base_deb/etc/one-context.d/00-network +++ b/base_deb/etc/one-context.d/00-network @@ -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