|
|
@ -1,4 +1,4 @@
|
|
|
|
-- Copyright (C) 2021 dz <dingzhong110@gmail.com>
|
|
|
|
-- PrivateRouter Easy Mesh
|
|
|
|
|
|
|
|
|
|
|
|
local m,s,o
|
|
|
|
local m,s,o
|
|
|
|
local sys = require "luci.sys"
|
|
|
|
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 = s:option(Flag, "enabled", translate("Enable"), translate("Enable or disable EASY MESH"))
|
|
|
|
o.default = 0
|
|
|
|
o.default = 0
|
|
|
|
o.rmempty = false
|
|
|
|
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 = s:option(ListValue, "role", translate("role"))
|
|
|
|
o:value("off", translate("off"))
|
|
|
|
o:value("off", translate("off"))
|
|
|
|