Greetings,
I'm looking for a good thread on this but havent found it yet.
What I would like to do is have some of the items that I normally set after each image update via web interface baked into my image.
For example, I want the LAN to not be "static" but dhcp. This is easy to change via the web interface, but I want it set that way when I install the image or at least on first boot.
It would appear that the file
/etc/config/network is what gets changed when I make the corresponding change in the web ui.
I tried changing that file in trunk/packages/base-files/files/etc/config/network, but it didn't seem to work.
config 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'defaultroute' '0'
option 'peerdns' '0'
option 'proto' 'dhcp'
After building and installing my image, I was back to "static" and 192.168.1.1.
Can someone please explain how etc/config/network is generated and suggest a way modify it during the build process? Is NVRAM involved?
If I can't put the change in when the image is built, can I run a script just after boot to make the changes?
I am using the WRT160NL with the r22992 version of OpenWRT.
Thank you.