From: Harald Hoyer Date: Tue, 25 Aug 2015 09:20:30 +0000 (+0200) Subject: network/ifup.sh: save return value of ifup X-Git-Tag: RHEL-7.2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4006781e8a59dc69a0dd3836fce137f08b23001;p=thirdparty%2Fdracut.git network/ifup.sh: save return value of ifup --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index e51b453a0..2562af610 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -396,6 +396,7 @@ for p in $(getargs ip=); do do_static ;; esac done + ret=$? > /tmp/net.${netif}.up @@ -403,7 +404,7 @@ for p in $(getargs ip=); do dhcp|on|any|dhcp6) ;; *) - if [ $? -eq 0 ]; then + if [ $ret -eq 0 ]; then setup_net $netif source_hook initqueue/online $netif if [ -z "$manualup" ]; then