mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
mediatek: bpi-r4: fix uci-default script for mac storage
There was a typo in commit5709254690
("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:
parent
738b427d35
commit
3dde786163
@ -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)" ] &&
|
||||
|
Loading…
Reference in New Issue
Block a user