From c574c3f565489d754e20259509ce63e782ee3fa4 Mon Sep 17 00:00:00 2001 From: Hiroaki Mizuguchi Date: Tue, 28 Nov 2017 14:59:55 +0900 Subject: [PATCH] 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:. --- modules.d/40network/ifup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index fb672413..54981386 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