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)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 23 Nov 2024 18:33:42 +0000 (19:33 +0100)
commite7aaba2587e57dbd157899f7a2215ec6b7af5f89
treeabe58a4371e4c2e4a84e436536fe3c85b1af666a
parentce3b36b3d5374709b9b091390cb9053657be17fa
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>
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