forked from Ivasoft/openwrt
ramips: MSG1500 X.00: switch to mac-address-ascii dts
The Config partition of some machines is special, and the openwrt script cannot read the protest_lan_mac correctly. This problem can be solved by reading the mac address (ascii) in dts. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
This commit is contained in:
committed by
Christian Marangi
parent
1f68baf5f0
commit
31c15813f9
@@ -277,11 +277,6 @@ ramips_setup_macs()
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
label_mac=$lan_mac
|
||||
;;
|
||||
raisecom,msg1500-x-00)
|
||||
lan_mac=$(mtd_get_mac_ascii Config protest_lan_mac)
|
||||
wan_mac=$(mtd_get_mac_ascii Config protest_wan_mac)
|
||||
label_mac=$lan_mac
|
||||
;;
|
||||
yuncore,ax820)
|
||||
label_mac=$(mtd_get_mac_binary Factory 0x4)
|
||||
;;
|
||||
|
||||
@@ -141,8 +141,7 @@ case "$board" in
|
||||
;;
|
||||
raisecom,msg1500-x-00)
|
||||
[ "$PHYNBR" = "0" ] && \
|
||||
macaddr_setbit_la "$(mtd_get_mac_ascii Config protest_lan_mac)" \
|
||||
> /sys${DEVPATH}/macaddress
|
||||
macaddr_setbit_la "$(get_mac_label)" > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
snr,snr-cpe-me2-sfp)
|
||||
hw_mac_addr="$(mtd_get_mac_binary factory 0x8004)"
|
||||
|
||||
Reference in New Issue
Block a user