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: RHEL-7.2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77f46adf5e5ab1f6da2e459bb55435d4b70842c5;p=thirdparty%2Fdracut.git network/ifup.sh:do_static(): error out, if interface could not be brought up --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 8a5a60651..1ee89bf48 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -155,7 +155,11 @@ do_ipv6auto() { do_static() { strstr $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 strstr $ip '*:*:*'; then