diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-06-22 08:51:27 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2018-08-30 14:31:29 +0200 |
commit | 8d0cccdb431e61b26a8482cb5a6ac81540b7d229 (patch) | |
tree | 72a3aed1b375c288dec5ad704ba4d218d99fa637 /applications | |
parent | b93d3f3a1812e05def960835d39080780edb7129 (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>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-mwan3/luasrc/controller/mwan3.lua | 4 |
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 2d46953e55..541d695ecf 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 |