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
This commit is contained in:
mxi1 2009-06-11 10:46:56 +00:00
parent 40d9cc966a
commit 285e0d2b6a

View File

@ -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