File sysconfig-allow-ifup-lo-in-nm-flow.bnc547620.diff of Package sysconfig

From 0e156d2daa99f4b6366b64f3447ae0f6a916b8ab Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski <mt@suse.de>
Date: Mon, 23 Nov 2009 09:19:55 +0100
Subject: [PATCH] Allow ifup lo, even NetworkManager is active or it breaks the
 lo setup via /etc/init.d/boot.localnet (bnc#547620,bnc#547928).

---
 scripts/ifup |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ifup b/scripts/ifup
index 34f1dfb..1b4e4e4 100755
--- a/scripts/ifup
+++ b/scripts/ifup
@@ -255,11 +255,11 @@ fi
 # Check if NetworkManager is running, inform the user and exit
 # 
 if [ "$NETWORKMANAGER" = yes ] && ! netcontrol_running ; then
-	if [ "$SCRIPTNAME" != ifdown ] ; then
+	if [ "$SCRIPTNAME" != ifdown -a "$INTERFACE" != lo ] ; then
 		mesg "Network interface is managed by the NetworkManager -> skipping"
 		exit $R_NOTIMPL
 	fi
-elif nm_running ; then
+elif nm_running && [ "$INTERFACE" != lo ] ; then
 	mesg "Network interface is managed by the NetworkManager -> skipping"
 	exit $R_NOTIMPL
 fi
-- 
1.6.4.2
openSUSE Build Service is sponsored by