mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Try to set network config for r7800
This commit is contained in:
parent
9b5f1cc351
commit
015e660b0e
1 changed files with 7 additions and 0 deletions
|
@ -117,6 +117,8 @@ elif [ "$(swconfig list 2>&1 | grep switch0)" != "" ] && [ -d '/sys/class/net/et
|
|||
set network.@switch_vlan[4].vid=5
|
||||
set network.@switch_vlan[4].ports='4 6t'
|
||||
EOF
|
||||
elif [ "$(swconfig list 2>&1 | grep switch0)" != "" ] && [ -d /sys/class/net/eth1 ] && [ "$(grep ipq806x /etc/os-release)" != "" ]; then
|
||||
lanif="eth0.2"
|
||||
elif [ "$(swconfig list 2>&1 | grep switch0)" != "" ] && [ -d /sys/class/net/eth1 ]; then
|
||||
lanif="eth1"
|
||||
elif [ ! -d /sys/class/net/eth1 ] && [ -d /sys/class/net/eth0 ]; then
|
||||
|
@ -169,6 +171,11 @@ uci -q set network.lan.ip4table='lan'
|
|||
|
||||
# Create WAN interfaces
|
||||
if [ "$(uci -q show network.wan1 | grep multipath)" = "" ] && [ -z "$(uci -q get network.wan1.multipath)" ]; then
|
||||
if [ "$(grep ipq806x /etc/os-release)" != "" ]; then
|
||||
_setup_wan_interface wan1 eth1.1 master
|
||||
_setup_wan_interface wan2 eth1.2 on
|
||||
_setup_wan_interface wan3 eth1.3 on
|
||||
_setup_wan_interface wan4 eth1.4 on
|
||||
if [ "$(grep rockchip /etc/os-release)" != "" ]; then
|
||||
_setup_wan_interface wan1 eth0 master macvlan
|
||||
_setup_wan_interface wan2 eth0 on macvlan
|
||||
|
|
Loading…
Reference in a new issue