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:
parent
40d9cc966a
commit
285e0d2b6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user