summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/includes/functions.inc.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php
index dc58e9c..38f4b14 100644
--- a/usr/local/www/includes/functions.inc.php
+++ b/usr/local/www/includes/functions.inc.php
@@ -86,12 +86,9 @@ function get_pfstate() {
}
function has_temp() {
- if(`/sbin/dmesg -a | /usr/bin/grep net4801` <> "") {
- /* Initialize hw monitor */
- exec("/usr/local/sbin/env4801 -i");
- return true;
- }
+ /* no known temp monitors available at present */
+
/* should only reach here if there is no hardware monitor */
return false;
}
@@ -107,7 +104,6 @@ function get_hwtype() {
function get_temp() {
switch(get_hwtype()) {
case '4801':
- $ret = rtrim(`/usr/local/sbin/env4801 | /usr/bin/grep Temp |/usr/bin/cut -c24-25`);
break;
default:
return;
OpenPOWER on IntegriCloud