slitaz-forge rev 14

Made tank index.php use uname -p to tell what cpu have. You will need the real uname in coreutils-context-system installed for this to work right.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 05:01:53 2011 +0000 (2011-02-26)
parents 89ae537ae823
children b8119a69e3ba
files tank/web/index.php
line diff
     1.1 --- a/tank/web/index.php	Wed Feb 23 23:38:49 2011 +0000
     1.2 +++ b/tank/web/index.php	Sat Feb 26 05:01:53 2011 +0000
     1.3 @@ -63,6 +63,14 @@
     1.4  	title="Tank RRDtool graphs" alt="graphs"
     1.5      src="pics/website/monitor.png" /></a>System stats</h2>
     1.6  
     1.7 +<h4>Cpu</h4>
     1.8 +
     1.9 +<pre class="package">
    1.10 +<?php
    1.11 +system("uname -p")
    1.12 +?>
    1.13 +</pre>
    1.14 +
    1.15  <h4>Uptime</h4>
    1.16  
    1.17  <pre class="package">
    1.18 @@ -72,6 +80,7 @@
    1.19  </pre>
    1.20  
    1.21  <h4>Disk usage</h4>
    1.22 +
    1.23  <pre class="package">
    1.24  <?php
    1.25  system("df -h | sed '/^rootfs/d' | grep  '\(^/dev\|Filesystem\)'");