aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-09 12:56:12 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-12 13:12:11 +0100
commit68ef534989d61fc82dcb8f85840318f67a7158fd (patch)
tree9e0f57a9fa9ac673c802afe070beb6af3ff252c5 /target
parent772af7f98d23f9d616928d89315860dade3d704b (diff)
downloadupstream-68ef534989d61fc82dcb8f85840318f67a7158fd.tar.gz
upstream-68ef534989d61fc82dcb8f85840318f67a7158fd.tar.bz2
upstream-68ef534989d61fc82dcb8f85840318f67a7158fd.zip
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>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network5
1 files changed, 4 insertions, 1 deletions
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 2828cf67dc..2447ff8a8d 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
@@ -220,9 +220,12 @@ ramips_setup_macs()
mediatek,ap-mt7621a-v60)
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)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary hard_config 0x10)" 2)
+ label_mac=$(mtd_get_mac_binary hard_config 0x10)
;;
netgear,r6260|\
netgear,r6350|\