diff --git a/run_hbc b/run_hbc index 8f58c55..7d9f378 100755 --- a/run_hbc +++ b/run_hbc @@ -3,5 +3,11 @@ D=$(dirname $0) pkill -f $D/hbc 2>/dev/null sleep 1 +while true; do + ping -qAW 6 -c 2 1.1.1.1 + if [ $? -eq 0 ]; then + break + fi +done $D/hbc $@