diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-11 00:18:45 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-13 12:51:38 +0100 |
commit | f4c3cfc620db16484fd85570c8215abc3b36dc82 (patch) | |
tree | 6a31d02f90eba7bc0dd02bd83b9c807b61a03a43 /target/linux/ramips/mt76x8 | |
parent | 4b81c1fd570c61ca7bafa5baf750e7364bd8117f (diff) | |
download | upstream-f4c3cfc620db16484fd85570c8215abc3b36dc82.tar.gz upstream-f4c3cfc620db16484fd85570c8215abc3b36dc82.tar.bz2 upstream-f4c3cfc620db16484fd85570c8215abc3b36dc82.zip |
ramips: read label MAC address from flash instead of using phy0/phy1
This replaces all uses of $(cat /sys/class/ieee80211/phyX/macaddress)
by retrieval from the proper flash locations. This will make
02_network independent of WiFi setup again.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/mt76x8')
-rwxr-xr-x | target/linux/ramips/mt76x8/base-files/etc/board.d/02_network | 4 |
1 files changed, 2 insertions, 2 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 63861c2089..87ce447612 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -134,7 +134,7 @@ ramips_setup_macs() ;; cudy,wr1000) wan_mac=$(mtd_get_mac_binary factory 0x2e) - label_mac=$(cat /sys/class/ieee80211/phy0/macaddress) + label_mac=$(mtd_get_mac_binary factory 0x8) ;; duzun,dm06|\ mediatek,mt7628an-eval-board|\ @@ -192,7 +192,7 @@ ramips_setup_macs() ;; vocore,vocore2|\ vocore,vocore2-lite) - label_mac=$(cat /sys/class/ieee80211/phy0/macaddress) + label_mac=$(mtd_get_mac_binary factory 0x8) ;; esac |