Blame SOURCES/0314-network-ifup.sh-do_static-error-out-if-interface-cou.patch

712866
From 77f46adf5e5ab1f6da2e459bb55435d4b70842c5 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Wed, 19 Aug 2015 13:59:40 +0200
712866
Subject: [PATCH] network/ifup.sh:do_static(): error out, if interface could
712866
 not be brought up
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 8a5a6065..1ee89bf4 100755
712866
--- a/modules.d/40network/ifup.sh
712866
+++ b/modules.d/40network/ifup.sh
712866
@@ -155,7 +155,11 @@ do_ipv6auto() {
712866
 do_static() {
712866
     strstr $ip '*:*:*' && load_ipv6
712866
 
712866
-    linkup $netif
712866
+    if ! linkup $netif; then
712866
+        warn "Could bring interface $netif up!"
712866
+        return 1
712866
+    fi
712866
+
712866
     [ -n "$macaddr" ] && ip link set address $macaddr dev $netif
712866
     [ -n "$mtu" ] && ip link set mtu $mtu dev $netif
712866
     if strstr $ip '*:*:*'; then