From: Martin Schiller Date: Tue, 7 May 2024 06:32:42 +0000 (+0200) Subject: mediatek: bpi-r4: fix uci-default script for mac storage X-Git-Tag: v24.10.0-rc1~1947 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3dde7861635dffa8975049e67e44a4a3def33290;p=openwrt%2Fopenwrt.git 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 --- 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)" ] &&