|
|
@ -93,10 +93,6 @@ get_gateway6() {
|
|
|
|
get_ip() {
|
|
|
|
get_ip() {
|
|
|
|
ip=$(get_iface_var "IP")
|
|
|
|
ip=$(get_iface_var "IP")
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$ip" ]; then
|
|
|
|
|
|
|
|
ip=$(mac2ip $MAC)
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ip
|
|
|
|
echo $ip
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -226,6 +222,8 @@ EOT
|
|
|
|
GATEWAY6=$(get_gateway6)
|
|
|
|
GATEWAY6=$(get_gateway6)
|
|
|
|
CONTEXT_FORCE_IPV4=$(get_iface_var "CONTEXT_FORCE_IPV4")
|
|
|
|
CONTEXT_FORCE_IPV4=$(get_iface_var "CONTEXT_FORCE_IPV4")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ -z "${IP}${IPV6}" ] && continue
|
|
|
|
|
|
|
|
|
|
|
|
echo "auto $DEV"
|
|
|
|
echo "auto $DEV"
|
|
|
|
|
|
|
|
|
|
|
|
[[ -z $IPV6 || -n $CONTEXT_FORCE_IPV4 ]] && gen_iface_conf
|
|
|
|
[[ -z $IPV6 || -n $CONTEXT_FORCE_IPV4 ]] && gen_iface_conf
|
|
|
|