mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-09 07:37:07 +08:00
ipq40xx: fix rt-acrh17 lan mac
This commit is contained in:
parent
24cb7521b6
commit
61b257c96b
@ -116,7 +116,12 @@ ipq40xx_setup_macs()
|
|||||||
8dev,habanero-dvk)
|
8dev,habanero-dvk)
|
||||||
label_mac=$(mtd_get_mac_binary "ART" 0x1006)
|
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)
|
asus,rt-ac58u)
|
||||||
CI_UBIPART=UBI_DEV
|
CI_UBIPART=UBI_DEV
|
||||||
wan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
|
wan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
preinit_set_mac_address() {
|
preinit_set_mac_address() {
|
||||||
case $(board_name) in
|
case $(board_name) in
|
||||||
asus,rt-acrh17|\
|
|
||||||
asus,map-ac2200)
|
asus,map-ac2200)
|
||||||
base_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
|
base_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
|
||||||
ip link set dev eth0 address $(macaddr_add "$base_mac" +1)
|
ip link set dev eth0 address $(macaddr_add "$base_mac" +1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user