mediatek: bpi-r4: fix uci-default script for mac storage

There was a typo in commit 5709254690 ("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: 5709254690 ("mediatek: bpi-r4: store random MAC addresses for the BPi-R4")
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
This commit is contained in:
Martin Schiller 2024-05-07 08:32:42 +02:00 committed by Daniel Golle
parent 738b427d35
commit 3dde786163

View File

@ -11,7 +11,8 @@ unielec,u7623-02)
;; ;;
bananapi,bpi-r3|\ bananapi,bpi-r3|\
bananapi,bpi-r3-mini|\ bananapi,bpi-r3-mini|\
bananapi,bpi-4) bananapi,bpi-r4|\
bananapi,bpi-r4-poe)
[ -z "$(fw_printenv -n ethaddr 2>/dev/null)" ] && [ -z "$(fw_printenv -n ethaddr 2>/dev/null)" ] &&
fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)" fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"
[ -z "$(fw_printenv -n eth1addr 2>/dev/null)" ] && [ -z "$(fw_printenv -n eth1addr 2>/dev/null)" ] &&