aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-09-27 13:23:30 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-09-29 00:46:13 +0200
commit22e876fdb06666d25f71d593a0af2641c1c4c96a (patch)
tree0886b45b5c7f0d9c1173806cdd8234d85d209ed2 /target/linux/ramips/base-files
parent0aab49d234b15545650cb3b6cb49429a0b7b2407 (diff)
downloadupstream-22e876fdb06666d25f71d593a0af2641c1c4c96a.tar.gz
upstream-22e876fdb06666d25f71d593a0af2641c1c4c96a.tar.bz2
upstream-22e876fdb06666d25f71d593a0af2641c1c4c96a.zip
ramips: add label MAC address for Asus RT-AC85P
The label shows the MAC address of 2.4 GHz WiFi. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index ae05c827bc..25aa075093 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -564,6 +564,7 @@ ramips_setup_macs()
;;
asus,rt-ac85p)
wan_mac=$(mtd_get_mac_ascii u-boot-env et1macaddr)
+ label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
;;
asus,rt-n56u)
lan_mac=$(macaddr_setbit_la "$(cat /sys/class/net/eth0/address)")