diff options
Diffstat (limited to 'package/webif/files/www/cgi-bin/webif/info.sh')
-rwxr-xr-x | package/webif/files/www/cgi-bin/webif/info.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/package/webif/files/www/cgi-bin/webif/info.sh b/package/webif/files/www/cgi-bin/webif/info.sh new file mode 100755 index 000000000..cc7639702 --- /dev/null +++ b/package/webif/files/www/cgi-bin/webif/info.sh @@ -0,0 +1,44 @@ +#!/usr/bin/webif-page +<? +. /usr/lib/webif/webif.sh +header "Info" "Router Info" "@TR<<Router Info>>" + +?> +<pre><? +_version=$( grep "(" /etc/banner ) +_version="${_version%% ---*}" +_kversion="$( cat /proc/version )" +_date="$(date)" +_mac="$(/sbin/ifconfig eth0 | grep HWaddr | cut -b39-)" +sed -e 's/&/&/g' < /etc/banner +cat <<EOF +</pre> +<br /> +<br /> +<table style="width: 90%; text-align: left;" border="0" cellpadding="2" cellspacing="2" align="center"> +<tbody> + <tr> + <td>@TR<<Firmware Version>></td> + <td>$_version</td> + </tr> + <tr> + <td>@TR<<Kernel Version>></td> + <td>$_kversion</td> + </tr> + <tr> + <td>@TR<<Current Date/Time>></td> + <td>$_date</td> + </tr> + <tr> + <td>@TR<<MAC Address>></td> + <td>$_mac</td> + </tr> +</tbody> +</table> +EOF + +footer +?> +<!-- +##WEBIF:name:Info:10:Router Info +--> |