diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-07-05 18:02:35 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-03 11:49:19 -0400 |
commit | 25749326fc28f51d5e5531d16a923ef1e3a06591 (patch) | |
tree | e487aa781c9fcf36258e6ec1ada558a60cc769e1 /pts-core/functions/pts.php | |
parent | 66dd87c83614bae3938fa06929ade01253685102 (diff) | |
download | phoronix-test-suite-upstream-25749326fc28f51d5e5531d16a923ef1e3a06591.tar.gz phoronix-test-suite-upstream-25749326fc28f51d5e5531d16a923ef1e3a06591.tar.xz phoronix-test-suite-upstream-25749326fc28f51d5e5531d16a923ef1e3a06591.zip |
Add initial support for Solaris / OpenSolaris... A few hardware
detection functions may also be improved as a result.
Diffstat (limited to 'pts-core/functions/pts.php')
-rw-r--r-- | pts-core/functions/pts.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pts-core/functions/pts.php b/pts-core/functions/pts.php index 96faed1..578f609 100644 --- a/pts-core/functions/pts.php +++ b/pts-core/functions/pts.php @@ -37,6 +37,11 @@ function pts_init() define("OPERATING_SYSTEM", "Linux"); define("IS_LINUX", true); } + else if(strpos($uname_o, "solaris") !== FALSE) + { + define("OPERATING_SYSTEM", "Solaris"); + define("IS_SOLARIS", true); + } else { define("OPERATING_SYSTEM", "Unknown"); @@ -46,6 +51,8 @@ function pts_init() // Set the OSes that aren't the OS being used... if(!defined("IS_LINUX")) define("IS_LINUX", false); + if(!defined("IS_SOLARIS")) + define("IS_SOLARIS", false); if(!defined("IS_UNKNOWN")) define("IS_UNKNOWN", false); } |