diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-23 17:31:25 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-23 17:31:25 -0400 |
commit | d8e0c77dde30d22c3ceff22c3bf3bff6d9601db7 (patch) | |
tree | 2744ce202e00e76c8fbe603baa3dcd4e1e684218 /pts-core/functions/pts-functions_system_parsing.php | |
parent | 7bb821e0f5389440f00d7e20a5d3f21a40fa8295 (diff) | |
download | phoronix-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.php | 7 |
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) { |