23.06.2021, 15:35
Code:
enabled = event.getvalue()
require('uci')
uci.set('zerotier', 'default', 'enabled', enabled and 1 or 0)
uci.commit('zerotier')
os.execute('/etc/init.d/zerotier restart')
------------------------------
Ctrl+F5
Ctrl+F5