Hi,
I need the default network settings for a web-ui at run-time.
Atm. I parse /rom/uci-defaults/network (for ar7xxx) to
get the vlan ports and the raw interfaces (only two routers have those,
I need to hide them in my gui).
For other devices I would need to use /rom/etc/config/network.
That's clunky.
Would it be possible to run /rom/uci-defaults/network before the image
is created so I can access /rom/etc/config/network for all devices
without resorting to parse a script depending on the chipset?
A problem I see with this approach is that a custom /etc/config/network
would replace the default network configuration even in /rom/etc/config/.