diff options
Diffstat (limited to 'modules/luci-mod-status/luasrc/controller')
-rw-r--r-- | modules/luci-mod-status/luasrc/controller/admin/status.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/luci-mod-status/luasrc/controller/admin/status.lua b/modules/luci-mod-status/luasrc/controller/admin/status.lua index 2684bdf715..e84f88d642 100644 --- a/modules/luci-mod-status/luasrc/controller/admin/status.lua +++ b/modules/luci-mod-status/luasrc/controller/admin/status.lua @@ -14,27 +14,6 @@ function action_dmesg() luci.template.render("admin_status/dmesg", {dmesg=dmesg}) end -function dump_iptables(family, table) - local prefix = (family == "6") and "ip6" or "ip" - local ok, lines = pcall(io.lines, "/proc/net/%s_tables_names" % prefix) - if ok and lines then - local s - for s in lines do - if s == table then - luci.http.prepare_content("text/plain") - luci.sys.process.exec({ - "/usr/sbin/%stables" % prefix, "-w", "-t", table, - "--line-numbers", "-nxvL" - }, luci.http.write) - return - end - end - end - - luci.http.status(404, "No such table") - luci.http.prepare_content("text/plain") -end - function action_iptables() if luci.http.formvalue("zero") then if luci.http.formvalue("family") == "6" then |