Skip to content

Commit

Permalink
ramips: msg1500: further fix mac address
Browse files Browse the repository at this point in the history
Signed-off-by: AmadeusGhost <[email protected]>
  • Loading branch information
aiamadeus committed Sep 20, 2021
1 parent 84b4f35 commit 5fc4482
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ ramips_setup_macs()
lan_mac=$(macaddr_add $label_mac 1)
;;
raisecom,msg1500-x-00)
lan_mac=$(mtd_get_mac_ascii Config protest_lan_mac)
wan_mac=$(mtd_get_mac_ascii Config protest_wan_mac)
lan_mac=$(macaddr_add "$wan_mac" -3)
label_mac=$lan_mac
;;
xiaomi,mi-router-cr660x)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ case "$board" in
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
;;
raisecom,msg1500-x-00)
[ "$PHYNBR" = "0" ] && \
macaddr_setbit_la "$(mtd_get_mac_ascii Config .protest_lan_mac)" \
> /sys${DEVPATH}/macaddress
if [ "$PHYNBR" = "0" ]; then
base_mac=$(macaddr_add "$(mtd_get_mac_binary Factory 0x4)" 1)
macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress
fi
;;
esac

0 comments on commit 5fc4482

Please sign in to comment.