summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_parsing.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-23 17:31:25 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-23 17:31:25 -0400
commitd8e0c77dde30d22c3ceff22c3bf3bff6d9601db7 (patch)
tree2744ce202e00e76c8fbe603baa3dcd4e1e684218 /pts-core/functions/pts-functions_system_parsing.php
parent7bb821e0f5389440f00d7e20a5d3f21a40fa8295 (diff)
downloadphoronix-test-suite-upstream-d8e0c77dde30d22c3ceff22c3bf3bff6d9601db7.tar.gz
phoronix-test-suite-upstream-d8e0c77dde30d22c3ceff22c3bf3bff6d9601db7.tar.xz
phoronix-test-suite-upstream-d8e0c77dde30d22c3ceff22c3bf3bff6d9601db7.zip
pts-core: Fix HAL system detection for some systems
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 8acae69..25a10a2 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -74,7 +74,12 @@ function read_hal($name, $UDI = NULL)
function read_system_hal($name)
{
// Read system HAL
- return read_hal($name, "/org/freedesktop/Hal/devices/computer");
+ $hal = read_hal($name, "/org/freedesktop/Hal/devices/computer");
+
+ if($hal == "Unknown")
+ $hal = read_hal($name);
+
+ return $hal;
}
function read_sensors($attributes)
{