3 .
/usr
/lib
/webif
/webif.sh
4 header
"Status" "DHCP" "@TR<<DHCP leases>>"
6 <table style
="width: 90%; text-align: left;" border
="0" cellpadding
="2" cellspacing
="2" align
="center">
9 <th
>@TR
<<MAC Address>></th>
10 <th>@TR<<IP Address>></th>
12 <th>@TR<<Expires in>></th>
14 <? [ -e /tmp/dhcp.leases ] && awk -vdate="$(date +%s)" '
17 print "<td>" $2 "</td>"
18 print "<td>" $3 "</td>"
19 print "<td>" $4 "</td>"
23 if (h > 0) printf h "h "
25 if (m > 0) printf m "min "
37 ##WEBIF:name:Status:150:DHCP