-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed robot driver duplication and added robot_ip to wait for dashb…
…oard
- Loading branch information
Showing
3 changed files
with
14 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
#!/bin/bash | ||
|
||
netcat -z 192.168.56.101 29999 | ||
ip="192.168.56.101" | ||
if [[ ! -z "$1" ]] | ||
then | ||
ip=$1 | ||
fi | ||
|
||
netcat -z $ip 29999 | ||
while [ $? -eq 1 ] | ||
do | ||
echo "Dashboard server not accepting connections..." | ||
sleep 3 | ||
netcat -z 192.168.56.101 29999 | ||
netcat -z $ip 29999 | ||
done | ||
echo "Dashboard server connections are possible." | ||
sleep 5 |
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
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