commit | 698c3b253e859ef0504df6660dbaef4a110ea9df | [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 | 8db50272ae3e63aeaafc553172f153596b01172f | |
parent | 0552668da81439f7c2a7eb0a261db40143280683 [diff] [blame] |
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-dist/src/main/resources/scripts/getip.sh b/hivesterix-dist/src/main/resources/scripts/getip.sh index e0cdf73..8c9ae76 100755 --- a/hivesterix-dist/src/main/resources/scripts/getip.sh +++ b/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