From: Sven Roederer Date: Mon, 23 Dec 2019 00:42:52 +0000 (+0100) Subject: ramips: add label MAC address for Mikrotik RB750Gr3 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eca05bc4ccbba7d6cc718cdb66cba14c93aff663;p=openwrt%2Fstaging%2Fadrian.git ramips: add label MAC address for Mikrotik RB750Gr3 The device label contains: E01: 74:4D:28:xx:xx:30 E05: 74:4D:28:xx:xx:34 The first value corresponds to the address set in hard_config 0x10. That one is taken for the label MAC address. Signed-off-by: Sven Roederer --- diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network index 5c6b5659cb..a3b9c079a6 100755 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network @@ -230,9 +230,7 @@ ramips_setup_macs() mediatek,ap-mt7621a-v60) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x5)" 1) ;; - mikrotik,rb750gr3) - wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2) - ;; + mikrotik,rb750gr3|\ mikrotik,rbm33g) wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2) label_mac=$(mtd_get_mac_binary hard_config 0x10)