commit | 28ee2395d9d44044a1bddbfc795ef1768d6a64f3 | [log] [tgz] |
---|---|---|
author | buyingyi <buyingyi@123451ca-8445-de46-9d55-352943316053> | Thu Mar 14 21:34:30 2013 +0000 |
committer | buyingyi <buyingyi@123451ca-8445-de46-9d55-352943316053> | Thu Mar 14 21:34:30 2013 +0000 |
tree | 4a402d3768f1e97a2d4692ff3186e5f068ce645e | |
parent | e5c7c261859ff7fc2d5fd0215cfcda228781d2b2 [diff] |
fix getip.sh for a rare case git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_asterix_stabilization@3116 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 e0cdf73..a691c0f 100755 --- a/pregelix/pregelix-core/src/main/resources/scripts/getip.sh +++ b/pregelix/pregelix-core/src/main/resources/scripts/getip.sh
@@ -6,6 +6,10 @@ then #Get IP Address IPADDR=`/sbin/ifconfig eth0 | grep "inet " | awk '{print $2}' | cut -f 2 -d ':'` + if [ "$IPADDR" = "" ] + then + IPADDR=`/sbin/ifconfig em1 | grep "inet " | awk '{print $2}' | cut -f 2 -d ':'` + fi if [ "$IPADDR" = "" ] then IPADDR=`/sbin/ifconfig lo | grep "inet " | awk '{print $2}' | cut -f 2 -d ':'`