summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/generateMenuDefault
diff options
context:
space:
mode:
authoralbertogp <albertogp@uma.es>2012-05-18 10:00:35 +0000
committeralbertogp <albertogp@uma.es>2012-05-18 10:00:35 +0000
commit1873b9a7c3017c9c71d05301c2dd883f23757035 (patch)
tree27dcbb2bb0f65e9b120867be7e82cc95056b0b0b /client/shared/scripts/generateMenuDefault
parent4e1dc5385cbf9222dede8b8706b64af447ada79c (diff)
VersiĆ³n 1.0.4, #495: Integrar ticket en rama de desarrollo.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3052 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/generateMenuDefault')
-rwxr-xr-xclient/shared/scripts/generateMenuDefault19
1 files changed, 13 insertions, 6 deletions
diff --git a/client/shared/scripts/generateMenuDefault b/client/shared/scripts/generateMenuDefault
index 0437cd3d..f76e4f05 100755
--- a/client/shared/scripts/generateMenuDefault
+++ b/client/shared/scripts/generateMenuDefault
@@ -2,29 +2,36 @@
source /tmp/net-eth0.conf
FILEINFOHTML=/opt/opengnsys/log/`ogGetIpAddress`.info.html
+FILEINFOCACHE=/opt/opengnsys/log/`ogGetIpAddress`.cache.txt
+ogMountCache
+CACHECONTENIDO=`ls -m /opt/opengnsys/cache/opt/opengnsys/images`
SPEED=$(ethtool $DEVICE | grep Speed | awk -F": " '{print $2}')
DUPLEX=$(ethtool $DEVICE | grep Duplex | awk -F": " '{print $2}')
+CACHESIZEFREE=$(ogGetFreeSize `ogFindCache`)
+expr $CACHESIZEFREE / 1024 > /opt/opengnsys/log/`ogGetIpAddress`.cache.txt && echo '.MB,' >> /opt/opengnsys/log/`ogGetIpAddress`.cache.txt
#
# echo '';
#
cat > $FILEINFOHTML << EOF
-<div align="center" style="font-family: Arial, Helvetica, sans-serif;">'
+<div align="center" style="font-family: Arial, Helvetica, sans-serif;">
<p style="color:#999999; font-size: 16px; margin: 2em;">
-<table border=1>
-<tr>
+<table border=1 width="100%">
+<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>
+<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
+EOF
+cat >> $FILEINFOCACHE << EOF
+$CACHECONTENIDO
+EOF