File 0002-Fixed-order-of-addr-flush-and-link-down-in-ifdown.patch of Package sysconfig.openSUSE_12.1_Update

From d844f0ceb913a60e2c88b1097c98aa0b4486288f Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski <mt@suse.com>
Date: Fri, 18 Nov 2011 13:47:26 +0100
Subject: [PATCH] Fixed order of addr flush and link down in ifdown

Changed the order of ip addr flush and ip link set down calls
in ifdown as it does not trigger the ipv6 sysctl tree removal
(bnc#580018,bnc#559170).

Signed-off-by: Marius Tomaschewski <mt@suse.com>
---
 scripts/ifup |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ifup b/scripts/ifup
index bd6e83a..409a925 100755
--- a/scripts/ifup
+++ b/scripts/ifup
@@ -949,8 +949,8 @@ case "$BOOTPROTO$SKIP_MAIN_PART" in
 				# Calling 'ip' if there is no interface (ifdown called from udev for
 				# remove event) would trigger automatic module loading (Bug 199456)
 				if [ -d /sys/class/net/$INTERFACE ] ; then
-					ip addr flush dev $INTERFACE &>/dev/null
 					ip link set dev $INTERFACE down &>/dev/null
+					ip addr flush dev $INTERFACE &>/dev/null
 				fi
 				retcode=0 # $?
 			;;
@@ -1134,8 +1134,8 @@ case "$BOOTPROTO$SKIP_MAIN_PART" in
 				# Calling 'ip' if there is no interface (ifdown called from udev for
 				# remove event) would trigger automatic module loading (Bug 199456)
 				if [ -d /sys/class/net/$INTERFACE ] ; then
-					ip addr flush dev $INTERFACE &>/dev/null
 					ip link set dev $INTERFACE down &>/dev/null
+					ip addr flush dev $INTERFACE &>/dev/null
 				fi
 				retcode=0 # $?
 				;;
-- 
1.7.3.4

openSUSE Build Service is sponsored by