summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-21 04:19:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-21 04:19:18 +0000
commit4684dc58eded52c69708b9f3e80786e22d45ca98 (patch)
treed123e7bdf8287fa9af47710cd1bf84e0c309e866 /usr
parent404407ff24b89b7d08d49e527b7a78f610b7667f (diff)
downloadpfsense-4684dc58eded52c69708b9f3e80786e22d45ca98.zip
pfsense-4684dc58eded52c69708b9f3e80786e22d45ca98.tar.gz
detect if we're operating on a net4801 from dmesg -a and activate the env monitor
Ticket #94
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 25b4372..67b2a48 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -263,7 +263,8 @@ echo "<input style='border: 0px solid white;' size='30' name='swapusagemeter' id
</tr>
<?php
/* XXX - Stub in the HW monitor for net4801 - needs to use platform var's once we start using them */
- if (file_exists("/etc/48xx")) {
+ $is4801 = `dmesg -a | grep NET4801`;
+ if($is4801 <> "") {
echo " <tr>";
echo " <td width='25%' class='vncellt'>Temperature </td>";
echo " <td width='75%' class='listr'>";
OpenPOWER on IntegriCloud