In JUCI based UI,
in network-> connections, if I change from DHCP to static IP then LAN configuration also gets modified in /etc/config/network.
The following working LAN configuration,
config interface 'lan'
option type 'bridge'
option ip6assign '60'
option proto 'dhcp'
option ifname 'eth0 eth1'
gets modified as below
config interface 'lan'
option type 'bridge'
option ip6assign '60'
option proto 'dhcp'
option up '1'
option ifname 'br-lan'
if ( option ifname 'br-lan' ) then I can't access my router via web UI.
It should be option ifname 'eth0 eth1'
Where in source code, /etc/config/network gets written before calling backend(.lua) ?