diff --git a/luasrc/model/cbi/easymesh.lua b/luasrc/model/cbi/easymesh.lua index 2dfbd9f..0bb547d 100755 --- a/luasrc/model/cbi/easymesh.lua +++ b/luasrc/model/cbi/easymesh.lua @@ -45,6 +45,12 @@ 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 init start + luci.sys.call("/etc/init.d/easymesh start") +end + o = s:option(ListValue, "role", translate("role")) o:value("off", translate("off"))