From 164b8d94294a6d8d3b4eb0bc501bb075a3f178ab Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Sat, 9 Jan 2021 13:24:37 +0900 Subject: [PATCH] ramips: update MAC address configuration for Buffalo WCR-1166DS This patch converts MAC address configuration of Buffalo WCR-1166DS in 02_network to use the generic function of OpenWrt. And also, add label_mac. Signed-off-by: INAGAKI Hiroshi --- target/linux/ramips/mt76x8/base-files/etc/board.d/02_network | 4 ++-- 1 file 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 fa861c5989..01c7ab8e30 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 @@ -184,9 +184,9 @@ ramips_setup_macs() label_mac=$wan_mac ;; 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|\