diff options
author | Manuel Munz <freifunk@somakoma.de> | 2012-11-11 12:20:56 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2012-11-11 12:20:56 +0000 |
commit | 69dbc27ce0517c0bd414bbfb9cdff53fa968a3cd (patch) | |
tree | e7a136b4b36438d69151d8546f58fdeae7aff480 /modules/admin-full/luasrc/controller/admin | |
parent | d19eba5bc342723b17ca1315730d815cea2ec878 (diff) |
admin-full/diagnostics: Allow to use ping6 and traceroute6 when available, #487
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 85dc68fff0..6f55ff7779 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -156,6 +156,12 @@ function index() page = entry({"admin", "network", "diag_traceroute"}, call("diag_traceroute"), nil) page.leaf = true + + page = entry({"admin", "network", "diag_ping6"}, call("diag_ping6"), nil) + page.leaf = true + + page = entry({"admin", "network", "diag_traceroute6"}, call("diag_traceroute6"), nil) + page.leaf = true -- end end @@ -463,3 +469,11 @@ end function diag_nslookup() diag_command("nslookup %q 2>&1") end + +function diag_ping6() + diag_command("ping6 -c 5 %q 2>&1") +end + +function diag_traceroute6() + diag_command("traceroute6 -q 1 -w 2 -n %q 2>&1") +end |