Maybe I'm missing something or my google-fu is on the fritz, but I can't seem to figure out how/where the files that end up in /etc/config get created.
I'm doing a custom build process. Specifically I want to change the default network setup to a non-bridged config.
Currently I'm setting the default lan settings in make menuconfig (UCI-PRECONFIG -> uci-defaults). The contents of ~/base-files/etc/config/network don't seem to go over to the build-mipsel hierachy. I'm assuming this is overridden by the make config (and maybe the makefile for the base-files dir?).
In any case, the contents of /etc/config/network on a unit ends up containing more than just the lan settings that are part of the uci-defaults (ie. VLAN, loopback, and WAN). So what I'm wondering is how does this file get created?
As an aside, I had previously modified the build so that the /etc/config/wireless file had the wireless enabled by default and used a specific SSID. Now I can't remember how (it's been a couple months), but I suspect I had simply added the file to base-files which I'm guessing disappeared when I ran a make clean (distclean?). Scratch that - I just found where I did that; I modified the ~/packages/broadcom-wl/files/lib/wifi/broadcom.sh file. Hmm, I should probably document that or find some more standard/obvious way of doing it than burying the modification out of the way in an otherwise standard package.
So I'm guessing there is another script or three that fills in the config/network file, I just haven't found it yet. Which leaves me wondering if setting up the network config to come from base-files will end up being clobbered by whatever scripts are involved here.
Any thoughts?