Recently I'm studying to build my own image, but some requirements bother me.
If I have an pre-compiled ipk, how can I install it during the openwrt compile process
How to init something after the first time startup, but these init script will NOT run second time. My solution now is that writting a script file and call it by rc.local, and delete the call at the end of the script. But I think there should be another way provided by openwrt.
There is: uci-defaults
A script placed in /etc/uci-defaults runs once at boot and gets automatically deleted if it succeeds (exit status 0). If it fails (exit status non-zero), then it tries again at the next boot. https://openwrt.org/docs/guide-developer/uci-defaults