Still stuck... messed up my holidays over this.
Any ideas really appreciated.
I'm adapting WL-HDD for a specific application, and would like to "hard code" several settings, so that if the WL-HDD is reset to factory settings, custom settings remain (or are restored). I can change parameters in flash.default and compile firmware no problem, but I cannot figure out how to get DHCP server to be active by default.
I need an access point, but would really need to have DHCP enabled.
Does anyone know how to activate DHCP in default settings? I cannot find a setting in flash.default that would enable DHCP at "factory" defaults, and am getting a bit frustrated. I'm no Linux guru, and feel a bit out of my league.
Any help would be really appreciated. Thank you!
Still stuck... messed up my holidays over this.
Any ideas really appreciated.
Ok, I got it... after a lot of pain.
It's actually quite easy, once you understand the firmware's guts a bit. I changed the rc.c to execute a script from /sbin just before pre-boot (I wanted to keep pre-boot functionality intact). The script reads dhcp range from nvram and produces dnsmasq.conf at each boot - this enables using normal web interface for setting dhcp. Then it starts dnsmasq. I defined a new nvram variable for enabling/disabling dhcp to completely bypass the other router's settings, and fitted everything into web interface. I disabled all gateway functionality, and everything is exactly how I want it to be.
Thanks to Oleg for the great work he did on the firmware mod!
Bing