1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Tagged PHY or DSA mode in /etc and added kernel bridge vlan filter support

This commit is contained in:
Olli 2021-03-06 04:49:54 +01:00
parent 6a6941c379
commit ef75c95d50
3 changed files with 20 additions and 6 deletions

View file

@ -1,4 +1,10 @@
uci set network.@switch_vlan[0].vlan=10
uci set network.@switch_vlan[1].vlan=20
if [ -f "/etc/.lamobo-r1.dsa" ]; then
uci delete network.@switch_vlan[1]
uci delete network.@switch_vlan[0]
uci delete network.@switch[0]
else
uci set network.@switch_vlan[0].vlan=10
uci set network.@switch_vlan[1].vlan=20
fi
uci commit
exit 0

View file

@ -1,4 +1,6 @@
uci set network.@switch_vlan[0].ports="4 0 1 2 8t"
uci set network.@switch_vlan[1].ports="3 8"
uci commit
if [ -f "/etc/.lamobo-r1.phy" ]; then
uci set network.@switch_vlan[0].ports="4 0 1 2 8t"
uci set network.@switch_vlan[1].ports="3 8"
uci commit
fi
exit 0