mediatek: bpi-r4: fix uci-default script for mac storage
authorMartin Schiller <ms@dev.tdt.de>
Tue, 7 May 2024 06:32:42 +0000 (08:32 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 7 May 2024 08:56:36 +0000 (09:56 +0100)
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@dev.tdt.de>
target/linux/mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh

index 0afb434c97d7488177efafcb8438dbe2c30c6bda..e9cb4f921d9aedd82550d0cc8935687135ec83a3 100644 (file)
@@ -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)" ] &&