I am using Zerotier to create a peer-to-peer LAN between different Teltonika devices. There is no problem with that (tested on RUT240 and RUT360).
However, I would like to be able to switch the Zerotier ON and OFF by switching to another profile.
When switching to another profile, the zerotier configuration (/etc/config/zerotier) is correctly replaced however the service is not restarted/reloaded. If I type manually the command "/etc/init.d/zerotier reload" in a SSH shell, the new configuration is correctly applied.
Is there a way to run this command when a profile switch occurs ? I am not been able to find which script is doing the profile switch.
Thank you for your help