diff --git a/base_arch/etc/one-context.d/10-network b/base_arch/etc/one-context.d/10-network index 95ae091..0613f78 100755 --- a/base_arch/etc/one-context.d/10-network +++ b/base_arch/etc/one-context.d/10-network @@ -114,10 +114,6 @@ get_gateway6() { get_ip() { ip=$(get_iface_var "IP") - if [ -z "$ip" ]; then - ip=$(mac2ip $MAC) - fi - echo $ip } @@ -212,6 +208,8 @@ gen_network_configuration() GATEWAY6=$(get_gateway6) CONTEXT_FORCE_IPV4=$(get_iface_var "CONTEXT_FORCE_IPV4") + [ -z "${IP}${IPV6}" ] && continue + ( cat <