ramips: add label MAC address for Mikrotik RBM33G

The device label contains:
E01: B8:69:F4:xx:xx:07
E02: B8:69:F4:xx:xx:09

The first value corresponds to the address set in hard_config 0x10.

That one is taken for the label MAC address.

Thanks to Martin Schiller for retrieving the information.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2019-12-09 12:56:12 +01:00
parent 772af7f98d
commit 68ef534989

View File

@ -220,9 +220,12 @@ ramips_setup_macs()
mediatek,ap-mt7621a-v60) mediatek,ap-mt7621a-v60)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x5)" 1) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x5)" 1)
;; ;;
mikrotik,rb750gr3|\ mikrotik,rb750gr3)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2)
;;
mikrotik,rbm33g) mikrotik,rbm33g)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2) wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2)
label_mac=$(mtd_get_mac_binary hard_config 0x10)
;; ;;
netgear,r6260|\ netgear,r6260|\
netgear,r6350|\ netgear,r6350|\