diff options
author | Steven Barth <steven@midlink.org> | 2008-05-08 16:04:18 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-08 16:04:18 +0000 |
commit | 214bfdc19887c3df373d1323afd9738eee4f64ca (patch) | |
tree | 1b3660fd9a8db552d50c9ef9d11b9dee35bf8fac /modules/freifunk/src/view/sudo_status | |
parent | aa9ccf77c6648515ba58c37b9345cdbd561028db (diff) |
* Fixed #2030
Diffstat (limited to 'modules/freifunk/src/view/sudo_status')
-rw-r--r-- | modules/freifunk/src/view/sudo_status/iwconfig.htm | 21 | ||||
-rw-r--r-- | modules/freifunk/src/view/sudo_status/iwscan.htm | 22 |
2 files changed, 43 insertions, 0 deletions
diff --git a/modules/freifunk/src/view/sudo_status/iwconfig.htm b/modules/freifunk/src/view/sudo_status/iwconfig.htm new file mode 100644 index 0000000000..6f5dede700 --- /dev/null +++ b/modules/freifunk/src/view/sudo_status/iwconfig.htm @@ -0,0 +1,21 @@ +<% +ffluci.http.prepare_content("text/plain") +for k, v in pairs(ffluci.sys.wifi.getiwconfig()) do +%> +<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%> diff --git a/modules/freifunk/src/view/sudo_status/iwscan.htm b/modules/freifunk/src/view/sudo_status/iwscan.htm new file mode 100644 index 0000000000..6f321ae9e2 --- /dev/null +++ b/modules/freifunk/src/view/sudo_status/iwscan.htm @@ -0,0 +1,22 @@ +<% +ffluci.http.prepare_content("text/plain") +for iface, cells in pairs(ffluci.sys.wifi.iwscan()) do + for i, cell in ipairs(cells) do +%> +<tr> +<td><%=iface%></td> +<td><%=cell.ESSID%></td> +<td><%=cell.Address%></td> +<td><%=cell.Mode%></td> +<td><%=(cell.Channel or cell.Frequency or "")%></td> +<td><%=cell["Encryption key"]%></td> +<td><%=cell.Quality%></td> +<td><%=cell["Signal level"]%></td> +<td><%=cell["Noise level"]%></td> +</tr> +<% + end +end +%> + + |