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
#!/bin/bash | |
echo Starting boot2docker if not already started | |
boot2docker status || boot2docker up | |
export the_ip=$(boot2docker ip 2>&1 | egrep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*") | |
export old_route_ip=$(netstat -r | grep 172.17 | egrep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*") | |
echo Found boot2docker ip $the_ip | |
if [ "$the_ip" == "" ]; then | |
echo Could not find the ip of boot2docker.. =/ |
NewerOlder