fix typos in CONFIG_SITE files
[openwrt/svn-archive/openwrt.git] / openwrt / package / webif / files / www / cgi-bin / webif / status-connection.sh
1 #!/usr/bin/webif-page
2 <?
3 . /usr/lib/webif/webif.sh
4 header "Status" "Connections" "@TR<<Connection Status>>"
5 ?>
6 <table style="width: 90%; text-align: left;" border="0" cellpadding="2" cellspacing="2" align="center">
7 <tbody>
8 <tr>
9 <th><b>@TR<<Physical Connections|Ethernet/Wireless Physical Connections>></b></th>
10 </tr>
11 <tr>
12 <td><pre><? cat /proc/net/arp ?></pre></td>
13 </tr>
14
15 <tr><td><br /><br /></td></tr>
16
17 <tr>
18 <th><b>@TR<<Router Connections|Connections to the Router>></b></th>
19 </tr>
20 <tr>
21 <td><pre><? netstat -n 2>&- | awk '$0 ~ /^Active UNIX/ {ignore = 1}; ignore != 1 { print $0 }' ?></pre></td>
22 </tr>
23 </tbody>
24 </table>
25
26 <? footer ?>
27 <!--
28 ##WEBIF:name:Status:100:Connections
29 -->