From 47c3845ea9beabb5e1f333b133790c6ce2a6dbe8 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 17 Sep 2023 06:30:12 +0000 Subject: [PATCH] Update 'luasrc/model/cbi/easymesh.lua' --- luasrc/model/cbi/easymesh.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/luasrc/model/cbi/easymesh.lua b/luasrc/model/cbi/easymesh.lua index e8be5f9..d1d64af 100755 --- a/luasrc/model/cbi/easymesh.lua +++ b/luasrc/model/cbi/easymesh.lua @@ -1,4 +1,4 @@ --- Copyright (C) 2021 dz +-- PrivateRouter Easy Mesh local m,s,o local sys = require "luci.sys" @@ -45,6 +45,11 @@ s.anonymous = true o = s:option(Flag, "enabled", translate("Enable"), translate("Enable or disable EASY MESH")) o.default = 0 o.rmempty = false +function o.write(self, section, value) + Flag.write(self, section, value) + -- Run your custom command here. + luci.sys.call("/etc/init.d/easymesh start") +end o = s:option(ListValue, "role", translate("role")) o:value("off", translate("off"))