From: Harald Hoyer Date: Wed, 19 Aug 2015 11:59:40 +0000 (+0200) Subject: network/ifup.sh:do_static(): error out, if interface could not be brought up X-Git-Tag: 044~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5193198dc9caabedfdd801a94bf936c69758aa14;p=thirdparty%2Fdracut.git network/ifup.sh:do_static(): error out, if interface could not be brought up (cherry picked from commit 77f46adf5e5ab1f6da2e459bb55435d4b70842c5) --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 7da9171bb..69a4567bb 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -150,7 +150,11 @@ do_ipv6auto() { do_static() { strglobin $ip '*:*:*' && load_ipv6 - linkup $netif + if ! linkup $netif; then + warn "Could bring interface $netif up!" + return 1 + fi + [ -n "$macaddr" ] && ip link set address $macaddr dev $netif [ -n "$mtu" ] && ip link set mtu $mtu dev $netif if strglobin $ip '*:*:*'; then