summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-diag-devinfo/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-30 19:42:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-30 19:42:05 +0000
commit753dbfff7a093619ff80b7a537fb948d7e38b7cd (patch)
tree4ae4a65eafbf2939e3200b594dd958b5966e6d57 /applications/luci-diag-devinfo/luasrc
parent7dc764e861dd704ce554f2f5275761e348b07c3c (diff)
applications/luci-diag-devinfo: add index() stubs to controller files (#281)
Diffstat (limited to 'applications/luci-diag-devinfo/luasrc')
-rw-r--r--applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua6
-rw-r--r--applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua5
-rw-r--r--applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua4
3 files changed, 13 insertions, 2 deletions
diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
index ba6bdcd9c1..009054a860 100644
--- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
+++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
@@ -23,6 +23,10 @@ local translate = luci.i18n.translate
local DummyValue = luci.cbi.DummyValue
local SimpleSection = luci.cbi.SimpleSection
+function index()
+ return -- no-op
+end
+
function run_processes(outnets, cmdfunc)
i = next(outnets, nil)
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.optional = true
-end \ No newline at end of file
+end
diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
index 0cd981e053..95859aeaf7 100644
--- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
+++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
@@ -23,6 +23,9 @@ local translate = luci.i18n.translate
local DummyValue = luci.cbi.DummyValue
local SimpleSection = luci.cbi.SimpleSection
+function index()
+ return -- no-op
+end
function get_params()
@@ -96,4 +99,4 @@ function action_links(netdiscovermap, mini)
else
b.titleref = luci.dispatcher.build_url("admin", "status", "netdiscover_devinfo")
end
-end \ No newline at end of file
+end
diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
index 3d02d689a4..13ac91f93e 100644
--- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
+++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
@@ -23,6 +23,10 @@ local translate = luci.i18n.translate
local DummyValue = luci.cbi.DummyValue
local SimpleSection = luci.cbi.SimpleSection
+function index()
+ return -- no-op
+end
+
function get_params()
local smapnets_uci = luci.model.uci.cursor()