mediatek: make use of Acer Predator Connect W6's u-boot environment
authorGeorge Oldfort <openwrt@10099.de>
Mon, 11 Nov 2024 09:14:55 +0000 (10:14 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 28 Nov 2024 18:49:09 +0000 (18:49 +0000)
commitfd0f608d66b30be1eef5a1dc4bb61e3540736be3
tree52724f77587c7b6c95e64f93dfed7e712d1baac0
parenta07c241b81542ada0ebd7aaacafcd346a23593b8
mediatek: make use of Acer Predator Connect W6's u-boot environment

In order to prepare OpenWrt support for other Acer W6 devices and to adapt
the procedure to read and set mac addresses which other devices of the same
target are using (instead of needing an additional script and creating an
additional structure in the file system), this commit
- reads device mac addresses from u-boot environment
- avoids the detour via the file system to set the mac addresses
- drops redundant file /lib/preinit/05_extract_factory_data.sh

The idea and the implementation were thankfully taken from PR #16410.

This is the second of four commits into which the original commit was split
to make reviews easier and more targeted.

Signed-off-by: George Oldfort <openwrt@10099.de>
Link: https://github.com/openwrt/openwrt/pull/16861
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit e7aaba2587e57dbd157899f7a2215ec6b7af5f89)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/boot/uboot-envtools/files/mediatek_filogic
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
target/linux/mediatek/filogic/base-files/lib/preinit/05_extract_factory_data.sh [deleted file]
target/linux/mediatek/filogic/base-files/lib/preinit/10_fix_eth_mac.sh