From 285e0d2b6a873ab8c4d14d662e67d2be6ecb16b8 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Thu, 11 Jun 2009 10:46:56 +0000 Subject: [PATCH] isLinux() and isAIX() is implemented by minjun git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-web/lib/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-web/lib/functions.php b/xCAT-web/lib/functions.php index b7f54d472..3843f7e05 100644 --- a/xCAT-web/lib/functions.php +++ b/xCAT-web/lib/functions.php @@ -873,11 +873,11 @@ function getGroups() { //----------------------------------------------------------------------------- // Returns true if we are running on AIX -function isAIX() { } //todo: implement +function isAIX() { if(exec("oslevel")) {return TRUE;}else {return FALSE;} } //todo: implement //----------------------------------------------------------------------------- // Returns true if we are running on Linux -function isLinux() { } //todo: implement +function isLinux() { if(exec("uname") == "Linux") {return TRUE;} else {return FALSE;} } //todo: implement //----------------------------------------------------------------------------- // Returns true if we are running on Windows