[openwrt/openwrt] ramips: update MAC address configuration for Buffalo WSR-1166DHP
LEDE Commits
lede-commits at lists.infradead.org
Wed Sep 28 07:54:05 PDT 2022
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e739ccb2f6c0e29109a757fb22b37540b37347cd
commit e739ccb2f6c0e29109a757fb22b37540b37347cd
Author: Kazuhiro Ito <kzhr at d1.dion.ne.jp>
AuthorDate: Tue Aug 30 21:54:38 2022 +0900
ramips: update MAC address configuration for Buffalo WSR-1166DHP
Convert MAC address and label_mac configuration of Buffalo
WSR-1166DHP to use the generic function of OpenWrt.
Apply commit 770cfe9 for WCR-1166DS to WSR-1166DHP too.
Tested on the device and MAC address is kept before and after this
change.
Signed-off-by: Kazuhiro Ito <kzhr at d1.dion.ne.jp>
---
target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 8a9a0af7b0..15aa9aefcc 100644
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -147,9 +147,9 @@ ramips_setup_macs()
lan_mac=$label_mac
;;
buffalo,wsr-1166dhp)
- 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
;;
dlink,dir-860l-b1)
lan_mac=$(mtd_get_mac_ascii factory lanmac)
More information about the lede-commits
mailing list