summaryrefslogtreecommitdiff
path: root/package/webif/files/www/cgi-bin/webif/status-connection.sh
blob: fbf329b1b3d53af2575ec38222abd2558b43b2af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/webif-page
<? 
. /usr/lib/webif/webif.sh
header "Status" "Connections" "@TR<<Connection Status>>"
?>
<table style="width: 90%; text-align: left;" border="0" cellpadding="2" cellspacing="2" align="center">
<tbody>
	<tr>
		<th><b>@TR<<Physical Connections|Ethernet/Wireless Physical Connections>></b></th>
	</tr>
	<tr>
		<td><pre><? cat /proc/net/arp ?></pre></td>
	</tr>
	
	<tr><td><br /><br /></td></tr>

	<tr>
		<th><b>@TR<<Router Connections|Connections to the Router>></b></th>
	</tr>
	<tr>
		<td><pre><? netstat -n 2>&- | awk '$0 ~ /^Active UNIX/ {ignore = 1}; ignore != 1 { print $0 }' ?></pre></td>
	</tr>
</tbody>
</table>

<? footer ?>
<!--
##WEBIF:name:Status:100:Connections
-->