Can I modify a ready-to-be-flashed image to have my default configuration?

So basically I've compiled my own version of openwrt. The .bin file is basically an archive. Question can I open it (with 7-zip) and put there my own files so the router start with already my configuration?

I'm planning to add/modify:

/etc/config/dhcp
/etc/config/dropbear
/etc/config/firewall
/etc/config/network
/etc/config/system
/etc/config/wireless
/etc/banner
/etc/sysctl.conf
/etc/sysctl.d/10-default.conf
/etc/rc.local
/etc/ppp/options
/etc/crontabs/root
/lib/firmware/vdsl.bin
/lib/netifd/proto/ppp.sh

Is there any first-boot functionality that could overwrite those files I've just wrote?

There is uci-defaults, see also custom-files

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.