summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-06-22 08:51:27 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-08-30 14:31:29 +0200
commit8d0cccdb431e61b26a8482cb5a6ac81540b7d229 (patch)
tree72a3aed1b375c288dec5ad704ba4d218d99fa637
parentb93d3f3a1812e05def960835d39080780edb7129 (diff)
luci-app-mwan3: add command to diag_command output view
Add executed command to diagnostic output. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rw-r--r--applications/luci-app-mwan3/luasrc/controller/mwan3.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-app-mwan3/luasrc/controller/mwan3.lua b/applications/luci-app-mwan3/luasrc/controller/mwan3.lua
index 2d46953e5..541d695ec 100644
--- a/applications/luci-app-mwan3/luasrc/controller/mwan3.lua
+++ b/applications/luci-app-mwan3/luasrc/controller/mwan3.lua
@@ -101,6 +101,10 @@ function diagnosticsData(interface, task)
if addr and addr:match("^[a-zA-Z0-9%-%.:_]+$") then
local util = io.popen(cmd %{ut.shellquote(device), ut.shellquote(addr)})
if util then
+ luci.http.write("Command:\n")
+ luci.http.write(cmd %{ut.shellquote(device),
+ ut.shellquote(addr)} .. "\n\n")
+ luci.http.write("Result:\n")
while true do
local ln = util:read("*l")
if not ln then break end