forked from freifunk-franken/firmware
When adding support for the TP-Link Archer C50 v3 and TL-WR841N v13, their CPU port provided for layer-3 setup has not been set correctly. Do it now. Fixes:d165915178
("ramips/mt76x8: Add support for TP-Link Archer C50 v3") Fixes:9343153547
("ramips/mt76x8: Add support for TP-Link TL-WR841N v13") Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
39 lines
554 B
Plaintext
39 lines
554 B
Plaintext
# Copyright 2019 Adrian Schmutzler
|
|
# License GPLv3
|
|
|
|
BOARD="$(uci get board.model.name)"
|
|
|
|
case "$BOARD" in
|
|
tl-wr1043nd-v1)
|
|
CPUPORT="5t"
|
|
;;
|
|
tplink,c50-v3|\
|
|
tl-wr1043nd-v2|\
|
|
tl-wr1043nd-v3|\
|
|
tl-wr841n-v13|\
|
|
ubnt-erx|\
|
|
ubnt-erx-sfp)
|
|
CPUPORT="6t"
|
|
;;
|
|
cpe210-v2|\
|
|
cpe210-v3|\
|
|
tl-mr3020-v1|\
|
|
tl-wa850re-v1|\
|
|
tl-wa860re-v1|\
|
|
tl-wa901nd-v2|\
|
|
ubnt-bullet-m|\
|
|
ubnt-loco-m|\
|
|
ubnt-loco-m-xw|\
|
|
ubnt-nano-m|\
|
|
ubnt-pico-m|\
|
|
ubnt-power-m-xw|\
|
|
ubnt-unifi|\
|
|
ubnt-unifiac-lite|\
|
|
ubnt-unifiac-mesh)
|
|
CPUPORT=""
|
|
;;
|
|
*)
|
|
CPUPORT="0t"
|
|
;;
|
|
esac
|