aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/mt76x8/base-files/etc/board.d/02_network4
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 ab068ce150..00fb88aa3c 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
@@ -177,9 +177,9 @@ ramips_setup_macs()
case $board in
buffalo,wcr-1166ds)
- local index="$(find_mtd_index "board_data")"
- wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)"
+ wan_mac=$(mtd_get_mac_ascii board_data "mac")
lan_mac=$wan_mac
+ label_mac=$wan_mac
;;
cudy,wr1000|\
hilink,hlk-7628n|\