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:<url>.
master
Hiroaki Mizuguchi 2017-11-28 14:59:55 +09:00 committed by Harald Hoyer
parent 61ac90fefa
commit c574c3f565
1 changed files with 1 additions and 1 deletions

View File

@ -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