diff options
author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2021-01-09 13:24:37 +0900 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-03-06 20:05:45 +0100 |
commit | 770cfe9bffbe53fc9c3802041e0c1b1fda8fc015 (patch) | |
tree | 6ba8cd4fcd02dae03c8bb04a05260d724ca1920e /target/linux/ramips | |
parent | 621d88d7416a61ee3bae0211ab518ab39ea77324 (diff) | |
download | upstream-770cfe9bffbe53fc9c3802041e0c1b1fda8fc015.tar.gz upstream-770cfe9bffbe53fc9c3802041e0c1b1fda8fc015.tar.bz2 upstream-770cfe9bffbe53fc9c3802041e0c1b1fda8fc015.zip |
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 <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | 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 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|\ |