From 3dde7861635dffa8975049e67e44a4a3def33290 Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Tue, 7 May 2024 08:32:42 +0200 Subject: [PATCH] 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 --- .../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)" ] && -- 2.30.2