Created
January 2, 2016 16:18
-
-
Save harmishhk/b7fba658c035856f81a8 to your computer and use it in GitHub Desktop.
ros scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ROS_IP=`ifconfig eth0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}'` | |
if [ -z "$ROS_IP" ]; then | |
export ROS_IP=`ifconfig wlan0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}'` | |
fi | |
if [ -z "$ROS_IP" ]; then | |
export ROS_IP="127.0.0.1" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment