I'm looking for a way for make the system invoke my custom command after each uci commit (including commits issued by luci). Couldn't find a way to do it.
Is there an already implemented way to achieve this?
If not, a good idea would be to have a ubus event for uci commit - then I'd be able to wait for in a loop in a bash script and invoke the my command.
My end goal is to push a backup of all the configuration files to an external server on every change - so I also looked into things like alternative uci backends, but that seems to be too heavy of a solution for the task this simple.