From 24546fd666040cc3e6d894e42bbeffc87d487ee7 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Fri, 2 Feb 2024 17:32:08 +0800 Subject: [PATCH] mediatek: fix typo --- .../boot/dts/mediatek/mt7981-zr-3020.dts | 22 +++++++-------- .../mt7986/base-files/etc/board.d/02_network | 27 +++++++++---------- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-zr-3020.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-zr-3020.dts index 89045d35cf..1861e39532 100644 --- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-zr-3020.dts +++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-zr-3020.dts @@ -261,18 +261,18 @@ &pio { i2c_pins: i2c-pins-g0 { - mux { - function = "i2c"; - groups = "i2c0_0"; - }; - }; + mux { + function = "i2c"; + groups = "i2c0_0"; + }; + }; - pcm_pins: pcm-pins-g0 { - mux { - function = "pcm"; - groups = "pcm"; - }; - }; + pcm_pins: pcm-pins-g0 { + mux { + function = "pcm"; + groups = "pcm"; + }; + }; pwm0_pin: pwm0-pin-g0 { mux { diff --git a/target/linux/mediatek/mt7986/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7986/base-files/etc/board.d/02_network index 7c11a288c3..52058e3243 100755 --- a/target/linux/mediatek/mt7986/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/mt7986/base-files/etc/board.d/02_network @@ -89,20 +89,19 @@ mediatek_setup_macs() ;; tplink,tl-xdr6086|\ tplink,tl-xdr6088) - lan_mac=$(mtd_get_mac_binary config 0x1c) - wan_mac=$(macaddr_add "$lan_mac" 1) - label_mac=$lan_mac - local b0dat="$(l1dat if2dat ra0)" - local b1dat="$(l1dat if2dat rax0)" - if [ -f ${b0dat} ] && ! grep -q "MacAddress=" ${b0dat}; then - local b0mac="$label_mac" - echo "MacAddress=$b0mac" >> ${b0dat} - fi - if [ -f ${b1dat} ] && ! grep -q "MacAddress=" ${b1dat}; then - local b1mac="$(macaddr_add $label_mac 2)" - echo "MacAddress=$b1mac" >> ${b1dat} - fi - ;; + lan_mac=$(mtd_get_mac_binary config 0x1c) + wan_mac=$(macaddr_add "$lan_mac" 1) + local b0dat="$(l1dat if2dat ra0)" + local b1dat="$(l1dat if2dat rax0)" + if [ -f ${b0dat} ] && ! grep -q "MacAddress=" ${b0dat}; then + local b0mac="$lan_mac" + echo "MacAddress=$b0mac" >> ${b0dat} + fi + if [ -f ${b1dat} ] && ! grep -q "MacAddress=" ${b1dat}; then + local b1mac="$(macaddr_add $lan_mac 2)" + echo "MacAddress=$b1mac" >> ${b1dat} + fi + ;; xiaomi,redmi-router-ax6000*) wan_mac=$(mtd_get_mac_ascii Bdata ethaddr_wan) lan_mac=$(mtd_get_mac_ascii Bdata ethaddr)