projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 2/3/10 13:04
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:38
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:27
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 9:26
Michael Larabel  
pts: Drop MD5 hashes in... 
Tue 2/2/10 23:43
Michael Larabel  
phoromatic: Add... 
Tue 2/2/10 23:35
Michael Larabel  
pts-core: Phoromatic... 
 
> --git a/pts-core/functions/pts-functions_linux.php b/pts-core/functions/pts-functions_linux.php
index 898a2af
..59659c6 100644
--- a/pts-core/functions/pts-functions_linux.php
+++ b/pts-core/functions/pts-functions_linux.php
@@ -262,+262,27 @@ function operating_system_release()
     
$version os_version();

     if(
$vendor == "Unknown" && $version == "Unknown")
+    {
         
$os "Unknown";
+
+        
// Try to detect distro for those not supplying lsb_release
+        $files glob("/etc/*-release");
+        if(
count($files) > 0)
+        {
+            
$file file_get_contents($files[0]);
+            
$os substr($file0strpos($file"\n"));
+        }
+
+        if(
$os == "Unknown")
+        {
+            
$files glob("/etc/*-release");
+            if(
count($files) > 0)
+            {
+                
$file file_get_contents($files[0]);
+                
$os substr($file0strpos($file"\n"));
+            }
+        }
+    }
     else
         
$os $vendor " " $version;

<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media