Blame SOURCES/0324-network-ifup.sh-save-return-value-of-ifup.patch

712866
From b4006781e8a59dc69a0dd3836fce137f08b23001 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 25 Aug 2015 11:20:30 +0200
712866
Subject: [PATCH] network/ifup.sh: save return value of ifup
712866
712866
---
712866
 modules.d/40network/ifup.sh | 3 ++-
712866
 1 file changed, 2 insertions(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
5c6c2a
index e51b453a..2562af61 100755
712866
--- a/modules.d/40network/ifup.sh
712866
+++ b/modules.d/40network/ifup.sh
712866
@@ -396,6 +396,7 @@ for p in $(getargs ip=); do
712866
                 do_static ;;
712866
         esac
712866
     done
712866
+    ret=$?
712866
 
712866
     > /tmp/net.${netif}.up
712866
 
712866
@@ -403,7 +404,7 @@ for p in $(getargs ip=); do
712866
         dhcp|on|any|dhcp6)
712866
             ;;
712866
         *)
712866
-            if [ $? -eq 0 ]; then
712866
+            if [ $ret -eq 0 ]; then
712866
                 setup_net $netif
712866
                 source_hook initqueue/online $netif
712866
                 if [ -z "$manualup" ]; then