netmode: remove wan6 for pppoe and static modes

This commit is contained in:
Sukru Senli 2025-12-04 15:16:25 +01:00
parent 9e5c376576
commit 1606a6bcd1
3 changed files with 7 additions and 2 deletions

View file

@ -57,7 +57,10 @@ l3_network_config() {
fi fi
uci -q set network.wan.device="$wandev" uci -q set network.wan.device="$wandev"
uci -q set network.wan6=interface
uci -q set network.wan6.device="$wandev" uci -q set network.wan6.device="$wandev"
uci -q set network.wan6.proto="dhcpv6"
uci -q set network.WAN.mtu="$NETMODE_mtu" uci -q set network.WAN.mtu="$NETMODE_mtu"

View file

@ -55,7 +55,8 @@ l3_network_pppoe_config() {
fi fi
uci -q set network.wan.device="$wandev" uci -q set network.wan.device="$wandev"
uci -q set network.wan6.device="$wandev"
uci -q delete network.wan6
uci -q set network.WAN.mtu="$NETMODE_mtu" uci -q set network.WAN.mtu="$NETMODE_mtu"

View file

@ -56,7 +56,8 @@ l3_network_config() {
fi fi
uci -q set network.wan.device="$wandev" uci -q set network.wan.device="$wandev"
uci -q set network.wan6.device="$wandev"
uci -q delete network.wan6
uci -q set network.WAN.mtu="$NETMODE_mtu" uci -q set network.WAN.mtu="$NETMODE_mtu"