applications/luci-diag-devinfo: add index() stubs to controller files (#281)
This commit is contained in:
parent
7dc764e861
commit
753dbfff7a
3 changed files with 13 additions and 2 deletions
|
@ -23,6 +23,10 @@ local translate = luci.i18n.translate
|
||||||
local DummyValue = luci.cbi.DummyValue
|
local DummyValue = luci.cbi.DummyValue
|
||||||
local SimpleSection = luci.cbi.SimpleSection
|
local SimpleSection = luci.cbi.SimpleSection
|
||||||
|
|
||||||
|
function index()
|
||||||
|
return -- no-op
|
||||||
|
end
|
||||||
|
|
||||||
function run_processes(outnets, cmdfunc)
|
function run_processes(outnets, cmdfunc)
|
||||||
i = next(outnets, nil)
|
i = next(outnets, nil)
|
||||||
while (i) do
|
while (i) do
|
||||||
|
@ -190,4 +194,4 @@ function config_devinfo_scan(map, scannet)
|
||||||
|
|
||||||
o = scannet:option(luci.cbi.Value, "sleepreq", translate("Sleep Between Requests"), translate("Milliseconds to sleep between requests (default 100)"))
|
o = scannet:option(luci.cbi.Value, "sleepreq", translate("Sleep Between Requests"), translate("Milliseconds to sleep between requests (default 100)"))
|
||||||
o.optional = true
|
o.optional = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,6 +23,9 @@ local translate = luci.i18n.translate
|
||||||
local DummyValue = luci.cbi.DummyValue
|
local DummyValue = luci.cbi.DummyValue
|
||||||
local SimpleSection = luci.cbi.SimpleSection
|
local SimpleSection = luci.cbi.SimpleSection
|
||||||
|
|
||||||
|
function index()
|
||||||
|
return -- no-op
|
||||||
|
end
|
||||||
|
|
||||||
function get_params()
|
function get_params()
|
||||||
|
|
||||||
|
@ -96,4 +99,4 @@ function action_links(netdiscovermap, mini)
|
||||||
else
|
else
|
||||||
b.titleref = luci.dispatcher.build_url("admin", "status", "netdiscover_devinfo")
|
b.titleref = luci.dispatcher.build_url("admin", "status", "netdiscover_devinfo")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,6 +23,10 @@ local translate = luci.i18n.translate
|
||||||
local DummyValue = luci.cbi.DummyValue
|
local DummyValue = luci.cbi.DummyValue
|
||||||
local SimpleSection = luci.cbi.SimpleSection
|
local SimpleSection = luci.cbi.SimpleSection
|
||||||
|
|
||||||
|
function index()
|
||||||
|
return -- no-op
|
||||||
|
end
|
||||||
|
|
||||||
function get_params()
|
function get_params()
|
||||||
|
|
||||||
local smapnets_uci = luci.model.uci.cursor()
|
local smapnets_uci = luci.model.uci.cursor()
|
||||||
|
|
Loading…
Reference in a new issue