On 07.04.2020 01:14, Dan Haab wrote:
@@ -87,20 +96,28 @@ bcm53xx_setup_macs()
case "$board" in
asus,rt-ac87u)
etXmacaddr=$(nvram get et1macaddr)
+ offset=1
;;
dlink,dir-885l | \
netgear,r7900 | \
netgear,r8000 | \
netgear,r8500)
etXmacaddr=$(nvram get et2macaddr)
+ offset=1
+ ;;
+ luxul,xwr-3100v1 | \
+ luxul,xwr-3150-v1)
+ etXmacaddr=$(nvram get et0macaddr)
+ offset=5
;;
*)
etXmacaddr=$(nvram get et0macaddr)
+ offset=1
;;
esac
This seems like a bit of code duplication but nothing too scary at this
point I believe. We can refactor if if it gets worse. Thanks!
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel