Blame SOURCES/0118-network-ifup-do-not-ifup-an-already-setup-network-in.patch

712866
From 0c0ca2d9bce27b3005b9893a699ea325b0161c00 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 4 Feb 2014 12:02:05 +0100
712866
Subject: [PATCH] network/ifup: do not ifup an already setup network interface
712866
712866
---
712866
 modules.d/40network/ifup.sh | 6 +++++-
712866
 1 file changed, 5 insertions(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
5c6c2a
index b33981b2..3a03d052 100755
712866
--- a/modules.d/40network/ifup.sh
712866
+++ b/modules.d/40network/ifup.sh
712866
@@ -80,7 +80,11 @@ fi
712866
 # in netroot case we prefer netroot to bringup $netif automaticlly
712866
 [ -n "$2" -a "$2" = "-m" ] && [ -z "$netroot" ] && manualup="$2"
712866
 [ -z "$netroot" ] && [ -z "$manualup" ] && exit 0
712866
-[ -n "$manualup" ] && >/tmp/net.$netif.manualup
712866
+if [ -n "$manualup" ]; then
712866
+    >/tmp/net.$netif.manualup
712866
+else
712866
+    [ -f /tmp/net.${iface}.did-setup ] && exit 0
712866
+fi
712866
 
712866
 # Run dhclient
712866
 do_dhcp() {