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

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