firmware/src/packages/fff/fff-network
Fabian Bläse 41b4168290 fff-network: Do not configure switch for ONE and TWO_PORT devices
In a previous change all static configuration has been moved from
configurenetwork to a static uci-defaults script. As the configuration
of the switch is completely static, while port assignment for ONE and
TWO_PORT devices is dynamic, this patch slightly changed the condition
for the creation of the switch config.

Instead of only configuring the switch, if ONE_PORT and TWO_PORT is not
set, the switch is now always configured if a swconfig device is
present. However, some ONE and TWO_PORT devices have a swconfig device,
even though only a single physical port is connected to it. Those
devices require an unconfigured switch to function properly.

Therefore, introduce additional conditions, so the switch configuration
is not generated if ONE_PORT or TWO_PORT is set.

Fixes: 1c3328e64a ("Remove static configuration from dynamic script")

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2022-03-31 19:31:25 +02:00
..
arm Add support for AVM FritzBox 4040 2021-09-02 17:08:17 +02:00
files fff-network: Do not configure switch for ONE and TWO_PORT devices 2022-03-31 19:31:25 +02:00
mips fff-network: convert GL-AR150 to TWOPORT 2022-03-31 19:31:12 +02:00
mips64 Add support for Ubiquiti EdgeRouter 4 2021-09-02 17:02:18 +02:00
mipsel Add support for Xiaomi Mi Router 4A (100m) 2021-09-02 17:04:49 +02:00
powerpc treewide: exploit label MAC address from OpenWrt 2021-06-08 20:08:20 +02:00
x86_64 Add support for x86_64 2022-03-11 12:34:59 +01:00
Makefile treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00