Hello,
I'm trying to build a mesh of access points with batman, and among other things that I think I've already figured out, I need to set the following options on first boot:
- Set the MTU of the automatically generated WAN device
- Rename
br-lantobr-net - Modify the IP/DNS configuration of the
laninterface and attach it to a VLAN device
Unfortunately these options are in anonymous sections, so I can't think of a way to access them without resorting to negative-indexing. I considered just blowing away every anonymous section and starting over, but this makes a huge mess and it's not practical without re-implementing tons of board-specific code to pull the MAC addresses from /dev/mtd, rebuild br-lan with the appropriate switch ports, etc.
This dilemma left me with 3 questions:
- Why are these default sections anonymous?
- Is it possible to modify the build so they are named without having to re-implement the logic in
uci-defaults.sh? - If I can't make them named somehow, is it possible to access/set options in the anonymous sections explicitly without using negative-indexing? I have an idea in my head that somehow I could retrieve their auto-generated CFGID by searching the name option in each section, but I don't know where I'd start with practically implementing this. Is it even possible? I want to avoid negative-indexing by any means necessary because it feels too fragile/hacky for comfort.
Thanks,
--tyami94