ipq40xx: fix rt-acrh17 lan mac

This commit is contained in:
coolsnowwolf 2020-07-05 12:39:30 +08:00
parent 24cb7521b6
commit 61b257c96b
2 changed files with 6 additions and 2 deletions

View File

@ -116,7 +116,12 @@ ipq40xx_setup_macs()
8dev,habanero-dvk)
label_mac=$(mtd_get_mac_binary "ART" 0x1006)
;;
asus,rt-acrh17|\
asus,rt-acrh17)
CI_UBIPART=UBI_DEV
wan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
lan_mac=$(macaddr_add "$wan_mac" 1)
label_mac=$wan_mac
;;
asus,rt-ac58u)
CI_UBIPART=UBI_DEV
wan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)

View File

@ -2,7 +2,6 @@
preinit_set_mac_address() {
case $(board_name) in
asus,rt-acrh17|\
asus,map-ac2200)
base_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
ip link set dev eth0 address $(macaddr_add "$base_mac" +1)