source: client/shared/scripts/generateMenuDefault @ 89a8208

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 89a8208 was 3ba65df, checked in by adv <adv@…>, 14 years ago

version 1.0.2 #411 scripts generateMenuDefault

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2039 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.