source: client/shared/scripts/generateMenuDefault @ 0f04225

opengnsys-1.0.3
Last change on this file since 0f04225 was ecd8d9a, checked in by ramon <ramongomez@…>, 14 years ago

Integrar OpenGnSys 1.0.1 en rama principal (modifica #413).

git-svn-id: https://opengnsys.es/svn/trunk@2065 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 819 bytes
Line 
1#ª/bin/bash
2
3source /tmp/net-eth0.conf
4FILEINFOHTML=/opt/opengnsys/log/`ogGetIpAddress`.info.html
5
6SPEED=$(ethtool $DEVICE | grep Speed | awk -F": " '{print $2}')
7DUPLEX=$(ethtool $DEVICE | grep Duplex | awk -F": " '{print $2}')
8
9#
10#  echo '';
11#
12
13cat > $FILEINFOHTML << EOF
14<div align="center" style="font-family: Arial, Helvetica, sans-serif;">'
15<p style="color:#999999; font-size: 16px; margin: 2em;">
16
17<table border=1> 
18<tr> 
19<TD rowspan=2><P align=left><IMG border=0 src="../images/iconos/logoopengnsys.png"><P> </td>
20<td> Hostname: </td> <td> IP </td> <td> MAC </td> <td> Speed </td> <td> duplex </td> </tr>
21<tr>  <td> $HOSTNAME </td> <td> $(ogGetIpAddress) </td> <td> $(ogGetMacAddress)  </td> <td> $SPEED </td> <td>  $DUPLEX </td> </tr>
22</table>
23
24
25</p>
26<p style="font-size: 14px; margin: 2em;">
27</p>
28</div>
29
30EOF
Note: See TracBrowser for help on using the repository browser.