update getip script for macos

git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_staging@2249 123451ca-8445-de46-9d55-352943316053
diff --git a/pregelix/pregelix-core/src/main/resources/scripts/getip.sh b/pregelix/pregelix-core/src/main/resources/scripts/getip.sh
index d4fecf2..902d550 100755
--- a/pregelix/pregelix-core/src/main/resources/scripts/getip.sh
+++ b/pregelix/pregelix-core/src/main/resources/scripts/getip.sh
@@ -1,3 +1,7 @@
+#get the OS
+OS_NAME=`uname -a|awk '{print $1}'`
+LINUX_OS='Linux'
+
 if [ $OS_NAME = $LINUX_OS ];
 then
         #Get IP Address
diff --git a/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh b/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh
index d858580..6e0f90e 100644
--- a/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh
+++ b/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh
@@ -30,10 +30,6 @@
 #Set JAVA_HOME
 export JAVA_HOME=$JAVA_HOME
 
-#Get OS
-OS_NAME=`uname -a|awk '{print $1}'`
-LINUX_OS='Linux'
-
 IPADDR=`bin/getip.sh`
 #echo $IPADDR