commit | e7f19bf937275a5748172ec1b275b58c8a61b22d | [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 | 9cba20d04eb289ad909cb70e2c96eabacb9b1eef | |
parent | e90069b4a746ccfb2c3374b484a063fbc2923906 [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-core/src/main/resources/scripts/getip.sh b/pregelix-core/src/main/resources/scripts/getip.sh index e0cdf73..a691c0f 100755 --- a/pregelix-core/src/main/resources/scripts/getip.sh +++ b/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 ':'`