rpm/network: Use the IPv4 address if available

When the contextualization variables give us both IPv4 and IPv6
addresses, use both instead of expecting CONTEXT_FORCE_IPV4.
pull/49/head
Jan "Yenya" Kasprzak 9 years ago
parent 437c1a05b4
commit e100dcc14c

@ -188,7 +188,7 @@ ONBOOT=yes
NM_CONTROLLED=no
TYPE=Ethernet
EOT
[[ -z $IPV6 || -n $CONTEXT_FORCE_IPV4 ]] && gen_iface_conf
[[ -n $IP ]] && gen_iface_conf
[[ -n $IPV6 ]] && gen_iface6_conf
) > /etc/sysconfig/network-scripts/ifcfg-${DEV}

Loading…
Cancel
Save