This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

ZeroTier Service via LUA
#5
(23.06.2021, 15:35)Daniel. Wrote:
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')

Hi Daniel,

Can you help me with a script for Enable and Disable the Zerotier from a GA? 
Im running a Iot Edge and want to restrict the data usage, and want to remotly enable / disable Zerotier from Mosaic. 

Best Regard 
Even Sundgot.
Reply


Messages In This Thread
ZeroTier Service via LUA - by emme - 23.06.2021, 15:32
RE: ZeroTier Service via LUA - by Daniel - 23.06.2021, 15:35
RE: ZeroTier Service via LUA - by Evens - 26.08.2021, 18:29
RE: ZeroTier Service via LUA - by emme - 23.06.2021, 19:43
RE: ZeroTier Service via LUA - by admin - 25.06.2021, 11:35
RE: ZeroTier Service via LUA - by Daniel - 26.08.2021, 18:46
RE: ZeroTier Service via LUA - by gtsamis - 08.10.2021, 21:54
RE: ZeroTier Service via LUA - by admin - 09.10.2021, 09:24
RE: ZeroTier Service via LUA - by gtsamis - 09.10.2021, 10:05

Forum Jump: