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
parent
61ac90fefa
commit
c574c3f565
|
|
@ -88,7 +88,7 @@ do_ipv6auto() {
|
||||||
do_static() {
|
do_static() {
|
||||||
strglobin $ip '*:*:*' && load_ipv6
|
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"
|
warn "No carrier detected on interface $netif"
|
||||||
return 1
|
return 1
|
||||||
elif ! linkup "$netif"; then
|
elif ! linkup "$netif"; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue