[openwrt/openwrt] mediatek: bpi-r4: fix uci-default script for mac storage

LEDE Commits lede-commits at lists.infradead.org
Tue May 7 01:57:21 PDT 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3dde7861635dffa8975049e67e44a4a3def33290

commit 3dde7861635dffa8975049e67e44a4a3def33290
Author: Martin Schiller <ms at dev.tdt.de>
AuthorDate: Tue May 7 08:32:42 2024 +0200

    mediatek: bpi-r4: fix uci-default script for mac storage
    
    There was a typo in commit 5709254690cb ("mediatek: bpi-r4: store random
    MAC addresses for the BPi-R4"). Let's fix it and also add support for
    the bpi-r4-poe variant.
    
    Fixes: 5709254690cb ("mediatek: bpi-r4: store random MAC addresses for the BPi-R4")
    Signed-off-by: Martin Schiller <ms at dev.tdt.de>
---
 .../mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh b/target/linux/mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh
index 0afb434c97..e9cb4f921d 100644
--- a/target/linux/mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh
+++ b/target/linux/mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh
@@ -11,7 +11,8 @@ unielec,u7623-02)
 	;;
 bananapi,bpi-r3|\
 bananapi,bpi-r3-mini|\
-bananapi,bpi-4)
+bananapi,bpi-r4|\
+bananapi,bpi-r4-poe)
 	[ -z "$(fw_printenv -n ethaddr 2>/dev/null)" ] &&
 		fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
 	[ -z "$(fw_printenv -n eth1addr 2>/dev/null)" ] &&




More information about the lede-commits mailing list