diff options
author | adv <adv@uma.es> | 2011-05-26 15:27:34 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2011-05-26 15:27:34 +0000 |
commit | 3ba65df70c7bfee25e253f11309856ffc90b95b1 (patch) | |
tree | 4fb44a23278647379e9fbdfb99f988d3bfe14279 /client/shared/scripts/generateMenuDefault | |
parent | bba10c891760d566013bb70552c77140964a5af0 (diff) |
version 1.0.2 #411 scripts generateMenuDefault
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2039 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/generateMenuDefault')
-rwxr-xr-x | client/shared/scripts/generateMenuDefault | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/client/shared/scripts/generateMenuDefault b/client/shared/scripts/generateMenuDefault new file mode 100755 index 00000000..0437cd3d --- /dev/null +++ b/client/shared/scripts/generateMenuDefault @@ -0,0 +1,30 @@ +#ยช/bin/bash + +source /tmp/net-eth0.conf +FILEINFOHTML=/opt/opengnsys/log/`ogGetIpAddress`.info.html + +SPEED=$(ethtool $DEVICE | grep Speed | awk -F": " '{print $2}') +DUPLEX=$(ethtool $DEVICE | grep Duplex | awk -F": " '{print $2}') + +# +# echo ''; +# + +cat > $FILEINFOHTML << EOF +<div align="center" style="font-family: Arial, Helvetica, sans-serif;">' +<p style="color:#999999; font-size: 16px; margin: 2em;"> + +<table border=1> +<tr> +<TD rowspan=2><P align=left><IMG border=0 src="../images/iconos/logoopengnsys.png"><P> </td> +<td> Hostname: </td> <td> IP </td> <td> MAC </td> <td> Speed </td> <td> duplex </td> </tr> +<tr> <td> $HOSTNAME </td> <td> $(ogGetIpAddress) </td> <td> $(ogGetMacAddress) </td> <td> $SPEED </td> <td> $DUPLEX </td> </tr> +</table> + + +</p> +<p style="font-size: 14px; margin: 2em;"> +</p> +</div> + +EOF
\ No newline at end of file |