ramips: add label MAC address for Mikrotik RB750Gr3
authorSven Roederer <freifunk@it-solutions.geroedel.de>
Mon, 23 Dec 2019 00:42:52 +0000 (01:42 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 23 Dec 2019 01:24:55 +0000 (02:24 +0100)
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 <freifunk@it-solutions.geroedel.de>
target/linux/ramips/mt7621/base-files/etc/board.d/02_network

index 5c6b5659cb719c992ddae658d8d3ae1504abed1f..a3b9c079a69b2d9737c8d1c22303b6fc6d94fe8d 100755 (executable)
@@ -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)