sudomesh / sudowrt-firmware

Scripts to build the sudo mesh OpenWRT firmware.
Other
73 stars 19 forks source link

Better "blank slate" firmware network configs #78

Closed max-b closed 8 years ago

max-b commented 8 years ago

Right now we just manually write a single file to /etc/config/network for all of our "home node" blank firmwares.

That's worked reasonably well for the tp-link wdr and mynet n routers that we've used, but I just encountered a piece of hardware where I don't think it's working/going to work. Openwrt normally does its network configs in the /etc/uci-defaults/02_network script, and you can see the archer's network configs get set here:

http://git.openwrt.org/?p=15.05/openwrt.git;a=blob;f=target/linux/ar71xx/base-files/etc/uci-defaults/02_network;h=7e268865abf3ba8ca5f757ff16614647c131ba70;hb=HEAD#l59

Maybe we should adopt the same approach, considering that likely we'll run into different hardware that might want different "blank slate" configs?

max-b commented 8 years ago

This is done in 0b93c4d6073ad54e8cdfea9e28c84d0b96370ac0