1234567891011121314151617181920212223242526272829 |
- server=www.wolfssl.com
- tries=2
- if [ "$#" -gt 1 ]; then
- tries=$2
- fi
- if [ "$#" -gt 0 ]; then
- server=$1
- fi
- OS="`uname`"
- case $OS in
- MINGW* | MSYS*) PINGSW=-n ;;
- *) PINGSW=-c ;;
- esac
- ping $PINGSW $tries $server
- RESULT=$?
- [ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find $server, skipping" && exit 1
- exit 0
|