2 LuCI - Lua Configuration Interface
3 Copyright
2008 Steven Barth
<steven@midlink.org
>
4 Copyright
2008 Jo-Philipp Wich
<xm@leipzig.freifunk.net
>
6 Licensed under the Apache License, Version
2.0 (the
"License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-
2.0
20 <table cellspacing=
"0" cellpadding=
"6" class=
"smalltext">
22 <th><%:system_type%
>:
</th>
30 <th><%:ram%
>:
<br /><small><%:total%
>/<%:cached%
>/<%:buffers%
>/<%:free%
></small></th>
31 <td><%=memtotal%
> / <%=memcached%
> / <%=membuffers%
> / <%=memfree%
> KB
<br />
33 <div id=
"memfree" style=
"width:<%=perc_memfree%>%"></div>
34 <div id=
"membuffers" style=
"width:<%=perc_membuffers%>%"></div>
35 <div id=
"memcached" style=
"width:<%=perc_memcached%>%"></div>
44 <table cellspacing=
"0" cellpadding=
"6" class=
"smalltext">
47 <th><%:protocol%
></th>
48 <th><%:frequency%
></th>
57 <%for k, v in pairs(luci.sys.wifi.getiwconfig()) do
60 <td rowspan=
"2"><%=k%
></td>
62 <td><%=v.Frequency%
></td>
63 <td><%=v[
"Tx-Power"]%
></td>
64 <td><%=v[
"Bit Rate"]%
></td>
65 <td><%=v[
"RTS thr"]%
></td>
66 <td><%=v[
"Fragment thr"]%
></td>
67 <td><%=v[
"Link Quality"]%
></td>
68 <td><%=v[
"Signal level"]%
></td>
69 <td><%=v[
"Noise level"]%
></td>
72 <td colspan=
"4"><strong>ESSID:
</strong><%=v.ESSID%
></td>
73 <td colspan=
"5"><strong>BSSID:
</strong><%=(v.Cell or v[
"Access Point"])%
></td>
79 <h2><%:defroutes%
></h2>
81 <table cellspacing=
"0" cellpadding=
"6" class=
"smalltext">
88 for i, rt in pairs(routes) do
91 <td><%=luci.ip.Hex(rt.Gateway,
32):string()%
></th>
92 <td><%=rt.Metric%
></th>
93 <td><%=rt.Iface%
></th>