commit | cd9ea1593c06f17e58a3204624bc06e2c74d4ec7 | [log] [tgz] |
---|---|---|
author | buyingyi <buyingyi@123451ca-8445-de46-9d55-352943316053> | Thu Mar 14 21:35:33 2013 +0000 |
committer | buyingyi <buyingyi@123451ca-8445-de46-9d55-352943316053> | Thu Mar 14 21:35:33 2013 +0000 |
tree | 66504aa267395f9e55a778c247d27600a21837b6 | |
parent | 28ee2395d9d44044a1bddbfc795ef1768d6a64f3 [diff] |
fix getip.sh for hivesterix git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_asterix_stabilization@3117 123451ca-8445-de46-9d55-352943316053
diff --git a/hivesterix/hivesterix-dist/src/main/resources/scripts/getip.sh b/hivesterix/hivesterix-dist/src/main/resources/scripts/getip.sh index e0cdf73..8c9ae76 100755 --- a/hivesterix/hivesterix-dist/src/main/resources/scripts/getip.sh +++ b/hivesterix/hivesterix-dist/src/main/resources/scripts/getip.sh
@@ -8,6 +8,10 @@ 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 ':'` fi else