forked from Ivasoft/openwrt
ramips: TP-Link EC330-G5u v1: switch to mac-address-ascii
The TP-Link EC330-G5u v1 router has MAC address that stored in factory mtd in ascii format. This commit makes the router use of "mac-address-ascii" in dts. After the change: 1. All MAC addresses are explicitly assigned in dts (the workarounds in network scripts are no longer needed); 2. gmac0 (eth0) MAC address is no longer random. Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
This commit is contained in:
committed by
Hauke Mehrtens
parent
c31319b669
commit
15e21d373b
@@ -245,11 +245,6 @@ ramips_setup_macs()
|
||||
label_mac=$(cat "/sys/firmware/mikrotik/hard_config/mac_base")
|
||||
lan_mac=$label_mac
|
||||
;;
|
||||
tplink,ec330-g5u-v1)
|
||||
label_mac="$(mtd_get_mac_text factory 0x165)"
|
||||
lan_mac=$label_mac
|
||||
wan_mac=$(macaddr_add $label_mac 1)
|
||||
;;
|
||||
tplink,er605-v2)
|
||||
CI_UBIPART="firmware"
|
||||
label_mac=$(mtd_get_mac_uci_config_ubi "tddp")
|
||||
|
||||
Reference in New Issue
Block a user