firmware/src/packages/fff/fff-network/files/lib/functions/fff/interfaces

62 lines
1.1 KiB
Plaintext

# SPDX-License-Identifier: GPL-3.0-only
BOARD="$(uci get board.model.name)"
case "$BOARD" in
avm,fritzbox-4040|\
tplink,archer-c50-v3|\
tplink,archer-c50-v4|\
tplink,archer-c7-v5|\
tplink,c2600|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\
tplink,tl-wdr4310-v1|\
tplink,tl-wdr4900-v1|\
tplink,tl-wr1043nd-v2|\
tplink,tl-wr1043nd-v3|\
tplink,tl-wr1043nd-v4|\
tplink,tl-wr1043n-v5|\
tplink,tl-wr841n-v13|\
xiaomi,mi-router-4a-100m)
WANDEV=eth0
SWITCHDEV=eth0
;;
glinet,gl-ar150|\
tplink,archer-c25-v1|\
tplink,archer-c60-v1|\
tplink,archer-c60-v2|\
tplink,cpe210-v1|\
tplink,tl-wdr3500-v1)
WANDEV=eth1
SWITCHDEV=eth0
;;
tplink,archer-c7-v2)
WANDEV=eth1
SWITCHDEV=eth1
;;
tplink,cpe210-v1|\
tplink,cpe510-v1)
WANDEV=eth1
SWITCHDEV=eth0
TWO_PORT=YES
;;
network.ubnt,unifi|\
network.ubnt,unifiac-mesh|\
tplink,cpe210-v2|\
tplink,cpe210-v3|\
ubnt,nanostation-loco-m-xw)
WANDEV=eth0
SWITCHDEV=eth0
ONE_PORT=YES
;;
netgear,r6220|\
ubnt,edgerouter-4|\
ubnt,edgerouter-x-sfp|\
ubnt,edgerouter-x|\
xiaomi,mi-router-4a-gigabit)
WANDEV=switch0
SWITCHDEV=switch0
DSA=1
;;
esac