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

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