2008-07-07 22:00:56 +00:00
|
|
|
<%#
|
|
|
|
LuCI - Lua Configuration Interface
|
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
|
|
|
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
|
|
|
|
|
|
|
|
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$
|
|
|
|
|
|
|
|
-%>
|
2008-05-08 16:14:49 +00:00
|
|
|
<%+header%>
|
2008-06-09 10:10:29 +00:00
|
|
|
<h1><%:status%></h1>
|
|
|
|
<h2><%:system%></h2>
|
2008-05-08 16:14:49 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
<table cellspacing="0" cellpadding="6" class="smalltext">
|
|
|
|
<tr>
|
2008-06-09 10:10:29 +00:00
|
|
|
<th><%:system_type%>:</th>
|
2008-07-14 15:54:53 +00:00
|
|
|
<td><%=system%></td>
|
2008-05-08 16:14:49 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-06-09 10:10:29 +00:00
|
|
|
<th><%:cpu%>:</th>
|
2008-07-14 15:54:53 +00:00
|
|
|
<td><%=model%></td>
|
2008-05-08 16:14:49 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-07-14 15:54:53 +00:00
|
|
|
<th><%:ram%>:<br /><small><%:total%>/<%:cached%>/<%:buffers%>/<%:free%></small></th>
|
|
|
|
<td><%=memtotal%> / <%=memcached%> / <%=membuffers%> / <%=memfree%> KB<br />
|
|
|
|
<div id="memorybar">
|
|
|
|
<div id="memfree" style="width:<%=perc_memfree%>%"></div>
|
|
|
|
<div id="membuffers" style="width:<%=perc_membuffers%>%"></div>
|
|
|
|
<div id="memcached" style="width:<%=perc_memcached%>%"></div>
|
|
|
|
</div>
|
|
|
|
</td>
|
2008-05-08 16:14:49 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br /><br />
|
|
|
|
|
2008-06-09 10:10:29 +00:00
|
|
|
<h2><%:wifi%></h2>
|
2008-05-08 16:14:49 +00:00
|
|
|
<br />
|
|
|
|
<table cellspacing="0" cellpadding="6" class="smalltext">
|
|
|
|
<tr>
|
2008-06-09 10:10:29 +00:00
|
|
|
<th><%:name%></th>
|
|
|
|
<th><%:protocol%></th>
|
|
|
|
<th><%:frequency%></th>
|
|
|
|
<th><%:power%></th>
|
|
|
|
<th><%:bitrate%></th>
|
|
|
|
<th><%:rts%></th>
|
|
|
|
<th><%:frag%></th>
|
|
|
|
<th><%:link%></th>
|
|
|
|
<th><%:signal%></th>
|
|
|
|
<th><%:noise%></th>
|
2008-05-08 16:14:49 +00:00
|
|
|
</tr>
|
2008-05-25 17:00:30 +00:00
|
|
|
<%for k, v in pairs(luci.sys.wifi.getiwconfig()) do
|
2008-05-22 14:04:03 +00:00
|
|
|
%>
|
|
|
|
<tr>
|
|
|
|
<td rowspan="2"><%=k%></td>
|
|
|
|
<td><%=v[1]%></td>
|
|
|
|
<td><%=v.Frequency%></td>
|
|
|
|
<td><%=v["Tx-Power"]%></td>
|
|
|
|
<td><%=v["Bit Rate"]%></td>
|
|
|
|
<td><%=v["RTS thr"]%></td>
|
|
|
|
<td><%=v["Fragment thr"]%></td>
|
|
|
|
<td><%=v["Link Quality"]%></td>
|
|
|
|
<td><%=v["Signal level"]%></td>
|
|
|
|
<td><%=v["Noise level"]%></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="4"><strong>ESSID: </strong><%=v.ESSID%></td>
|
|
|
|
<td colspan="5"><strong>BSSID: </strong><%=(v.Cell or v["Access Point"])%></td>
|
|
|
|
</tr>
|
|
|
|
<%end%>
|
2008-05-08 16:14:49 +00:00
|
|
|
</table>
|
|
|
|
<br />
|
|
|
|
<br />
|
2008-06-09 10:10:29 +00:00
|
|
|
<h2><%:defroutes%></h2>
|
2008-05-08 16:14:49 +00:00
|
|
|
<br />
|
|
|
|
<table cellspacing="0" cellpadding="6" class="smalltext">
|
|
|
|
<tr>
|
2008-06-09 10:10:29 +00:00
|
|
|
<th><%:gateway%></th>
|
|
|
|
<th><%:metric%></th>
|
|
|
|
<th><%:iface%></th>
|
2008-05-08 16:14:49 +00:00
|
|
|
</tr>
|
|
|
|
<%
|
|
|
|
for i, rt in pairs(routes) do
|
|
|
|
%>
|
|
|
|
<tr>
|
2008-05-25 17:00:30 +00:00
|
|
|
<td><%=luci.sys.net.hexip4(rt.Gateway)%></th>
|
2008-05-08 16:14:49 +00:00
|
|
|
<td><%=rt.Metric%></th>
|
|
|
|
<td><%=rt.Iface%></th>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
<%+footer%>
|