summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-06-28 11:39:27 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-06-28 11:39:27 -0400
commitdaa8485b3846b4e989e4fd5e975c66db7a660d81 (patch)
treeca4eec0c0ffcf346346c9efc701addf93e625fbc /pts-core/functions/pts-functions_system.php
parent6974fb4d4ff964db52a39273b5406226e91430f3 (diff)
downloadphoronix-test-suite-upstream-daa8485b3846b4e989e4fd5e975c66db7a660d81.tar.gz
phoronix-test-suite-upstream-daa8485b3846b4e989e4fd5e975c66db7a660d81.tar.xz
phoronix-test-suite-upstream-daa8485b3846b4e989e4fd5e975c66db7a660d81.zip
Support PTS External Dependencies on non-LSB distributions
Diffstat (limited to 'pts-core/functions/pts-functions_system.php')
-rw-r--r--pts-core/functions/pts-functions_system.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system.php b/pts-core/functions/pts-functions_system.php
index fa216f5..15c583d 100644
--- a/pts-core/functions/pts-functions_system.php
+++ b/pts-core/functions/pts-functions_system.php
@@ -194,6 +194,20 @@ function operating_system_release()
return $os;
}
+function pts_vendor_identifier()
+{
+ $vendor = os_vendor();
+
+ if($vendor == "Unknown")
+ {
+ $vendor = operating_system_release();
+
+ if(($spos = strpos($vendor, " ")) > 1)
+ $vendor = substr($vendor, 0, $spos);
+ }
+
+ return strtolower($vendor);
+}
function system_temperature()
{
$temp_c = read_sensors("Sys Temp");