gh-32: skip network configuration when no IPs are defined

pull/49/head
Javi Fontan 9 years ago
parent 6b01b989b6
commit 281215e6cf

@ -225,5 +225,7 @@ EOT
done
}
[ -z "$(env | cut -d= -f1 | grep -E '^ETH[0-9]+_IPV*6*')" ] && exit 0
gen_network_configuration

@ -274,6 +274,8 @@ activate_network()
sleep 2
}
[ -z "$(env | cut -d= -f1 | grep -E '^ETH[0-9]+_IPV*6*')" ] && exit 0
deactivate_network
configure_network
activate_network

@ -207,5 +207,7 @@ configure_network()
sleep 2
}
[ -z "$(env | cut -d= -f1 | grep -E '^ETH[0-9]+_IPV*6*')" ] && exit 0
configure_network

Loading…
Cancel
Save