Autodetect mesh/lan/wan device
Autoconfiguration scripts should also decide which network devices are gonna be used as mesh/lan/wan.
Right now they are just applying the configuration from interfaces section of the config file.
Maybe this feature should be made in LUA using the new API.
Note: use OpenWrt's board.d settings
[qmp-system] Use OpenWrt's default interface roles on autoconfig
Previously, eth0/eth0.1 was used as LAN by default, then any other
interface as WAN. For those devices not matching this a specific hook
By using /etc/board.json information, now the LAN/WAN roles are
assigned the same way as OpenWrt does it, so no hooks are needed to
avoid roles swap.
Signed-off-by: Roger Pueyo Centelles <email@example.com>