The most appropriate way to run a script on firstboot and after fw updates?

Depending of what you'll need to do...

/lib/preinit/myScript
/etc/init.d/myService
/etc/uci-defaults/myScript

look for my own task at my GIT; https://github.com/erdoukki/vrac/tree/master/openwrt in files, or in this topic; How to automate upgrade?

1 Like