I am trying to create a custom firmware and I'm trying to set some nvram default. I modified router/nvram/defaults.c and some of my defaults appear to get set, but some do not.
For instance, I was able to automatically add an init script by setting the default value for ‘scripts_init`, setting the wireless to turn on automatically etc. However, when I tried to set, `lan_ipaddr`, `wl_ssid`, `wl_wpa_psk` and `http_passwd`, to name a few, they do not get set. I’ve done a:
strings /bin/nvram | grep 10.1.1.1
which is what I set ‘lan_ipaddr` to and it’s in the binary (so it's not that I had some #ifdef in the wrong page. Is there something special about certain defaults that do not get overridden?
As a background, this is a fresh out of the box ASUS RT-N16. Is this because those items were already set and `nvram` will not override those unless I do an
I know I can set this via the admin pages or ssh in to update these fields, but I was hoping to avoid this because I have to flash quite a few of them.