diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-08-21 23:38:12 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-08-21 23:42:32 +0200 |
commit | c23bc5032f7deb3615d4e8bddf37934f8252ab3e (patch) | |
tree | b4e669954cd154c5f4c5d75e4cc503d372c21b83 /target/linux | |
parent | c9faa84b316f74b666884a9524c8e046d0d81d1a (diff) | |
download | upstream-c23bc5032f7deb3615d4e8bddf37934f8252ab3e.tar.gz upstream-c23bc5032f7deb3615d4e8bddf37934f8252ab3e.tar.bz2 upstream-c23bc5032f7deb3615d4e8bddf37934f8252ab3e.zip |
ramips: add label MAC address for Onion Omega 2(+)
Thanks to a hint from Michael Siegenthaler in 4b4fa2f9fed7 ("ramips:
fix ethernet MAC address on Omega2"), the label MAC address of
the Onion Omega 2(+) can be set based on its documentation [1].
[1] https://docs.onion.io/omega2-docs/mac-address.html
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ramips/mt76x8/base-files/etc/board.d/02_network | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index 032d7e75b2..ca115fd618 100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -216,6 +216,12 @@ ramips_setup_macs() mercury,mac1200r-v2) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory_info 0xd)" 1) ;; + onion,omega2|\ + onion,omega2p|\ + vocore,vocore2|\ + vocore,vocore2-lite) + label_mac=$(mtd_get_mac_binary factory 0x4) + ;; rakwireless,rak633|\ unielec,u7628-01-16m|\ wavlink,wl-wn575a3) @@ -236,10 +242,6 @@ ramips_setup_macs() tplink,archer-c50-v4) wan_mac=$(macaddr_add "$(mtd_get_mac_binary rom 0xf100)" 1) ;; - vocore,vocore2|\ - vocore,vocore2-lite) - label_mac=$(mtd_get_mac_binary factory 0x4) - ;; wavlink,wl-wn570ha1|\ zbtlink,zbt-we1226) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x2e)" 1) |