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: 044~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=744c65939be7aa791d5538c6733e05d390c8cd3a;p=thirdparty%2Fdracut.git network/ifup.sh: save return value of ifup (cherry picked from commit b4006781e8a59dc69a0dd3836fce137f08b23001) --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 381ff43b3..647c85623 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -373,6 +373,7 @@ for p in $(getargs ip=); do do_static ;; esac done + ret=$? > /tmp/net.${netif}.up @@ -380,7 +381,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