From: Hiroaki Mizuguchi Date: Tue, 28 Nov 2017 05:59:55 +0000 (+0900) Subject: ifup.sh: don't wait linkup when set static ip explicitly X-Git-Tag: 048~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c574c3f565489d754e20259509ce63e782ee3fa4;p=thirdparty%2Fdracut.git ifup.sh: don't wait linkup when set static ip explicitly iface_has_carrier is skipped when set $dev. Fail curl fetch for root=live:. --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index fb6724130..54981386c 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -88,7 +88,7 @@ do_ipv6auto() { do_static() { strglobin $ip '*:*:*' && load_ipv6 - if [ -z "$dev" ] && ! iface_has_carrier "$netif"; then + if ! iface_has_carrier "$netif"; then warn "No carrier detected on interface $netif" return 1 elif ! linkup "$netif"; then