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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user