firmware/src/packages/fff/fff-network
Fabian Bläse 1c3328e64a Remove static configuration from dynamic script
Most of the configuration done in configurenetwork is static and does
not change after the first boot. Move this static configuration into a
uci-defaults script, which is only executed on first boot.

Configuration which might be changed at runtime (e.g. port assignment),
is kept in the configurenetwork script.

To improve readability and speed, combine multiple uci commands into a
uci batch. Drop any existing network configuration before applying our
own configuration. This requires the network.globals section to be
created explicitly. Also, the fdff:: addresses, ETHMESHMAC and ROUTERMAC
can be set unconditionally, as the uci-defaults script is only executed
once. Other than that, the static configuration has not been altered.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
2022-03-05 18:18:00 +01:00
..
arm Add support for AVM FritzBox 4040 2021-09-02 17:08:17 +02:00
files Remove static configuration from dynamic script 2022-03-05 18:18:00 +01:00
mips Drop support for devices with less than 8/64 MB flash/memory 2021-11-28 15:09:42 +01: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
Makefile treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00