From d3184b9e7953d9ad3ed04b722a953ac75272f88f Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Wed, 9 Jan 2013 18:50:07 +0000 Subject: applications: add luci-freifunk-diagnostics which is a clone of diagnostics in admin-full --- .../luasrc/view/freifunk/diagnostics.htm | 120 +++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 applications/luci-freifunk-diagnostics/luasrc/view/freifunk/diagnostics.htm (limited to 'applications/luci-freifunk-diagnostics/luasrc/view/freifunk') diff --git a/applications/luci-freifunk-diagnostics/luasrc/view/freifunk/diagnostics.htm b/applications/luci-freifunk-diagnostics/luasrc/view/freifunk/diagnostics.htm new file mode 100644 index 0000000000..5794a433ec --- /dev/null +++ b/applications/luci-freifunk-diagnostics/luasrc/view/freifunk/diagnostics.htm @@ -0,0 +1,120 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2010 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> + +<%+header%> + +<% +local fs = require "nixio.fs" +local has_ping6 = fs.access("/bin/ping6") or fs.access("/usr/bin/ping6") +local has_traceroute6 = fs.access("/usr/bin/traceroute6") +%> + + + + +
"> +
+

<%:Diagnostics%>

+ +
+ <%:Network Utilities%> + +
+ +
+
+ <% if has_ping6 then %> + + + <% else %> + + <% end %> +
+ +
+
+ <% if has_traceroute6 then %> + + + <% else %> + + <% end %> + <% if not has_traceroute6 then %> +

 

+

<%:Install iputils-traceroute6 for IPv6 traceroute%>

+ <% end %> +
+ +
+
+ +
+ +

+ +
+
+ + +
+ +<%+footer%> -- cgit v1.2.3