firmware/src/packages/fff/fff-network/files/lib/functions/fff/portorder
Fabian Bläse 5e7bdc0548 Drop support for devices with less than 8/64 MB flash/memory
Memory consumption has increased enough with OpenWrt 21.02, that
devices with 32 MB memory do not work reliably anymore.

It might be possible to work around the 4 MB flash limitation, but
reducing memory consumption is quite a bit harder. It is very likely
that this is only possible with a signifcant reduction of feature.

As we do not support any devices that have enough memory but only 4 MB
of flash, drop support for devices with less than 8/64 MB alltogether.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed by: Robert Langhammer <rlanghammer@web.de>
2021-11-28 15:09:42 +01:00

49 lines
849 B
Plaintext

# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright 2019 Adrian Schmutzler
get_port_order() {
local BOARD=$(uci get board.model.name)
local PORTORDER
case "$BOARD" in
avm,fritzbox-4040)
PORTORDER="5 1 2 3 4"
;;
glinet,gl-ar150)
PORTORDER="1"
;;
netgear,r6220)
PORTORDER="4 3 2 1 0"
;;
tplink,archer-c25-v1|\
tplink,archer-c60-v1|\
tplink,archer-c60-v2)
PORTORDER="4 3 2 1"
;;
tplink,archer-c50-v4|\
tplink,tl-wr841n-v13)
PORTORDER="0 1 2 3 4"
;;
tplink,archer-c7-v2|\
tplink,archer-c7-v5|\
tplink,tl-wdr4300-v1)
PORTORDER="1 2 3 4 5"
;;
tplink,c2600|\
tplink,tl-wr1043nd-v4|\
tplink,tl-wr1043n-v5)
PORTORDER="5 4 3 2 1"
;;
tplink,cpe210-v1|\
tplink,cpe510-v1)
PORTORDER="5 4"
;;
xiaomi,mi-router-4a-100m)
PORTORDER="0 2 4"
;;
esac
echo "$PORTORDER"
}