automt: change nc to ping for now (doesnt really help tho)

wsc-master
cora 2020-11-15 21:30:55 +01:00
parent b6b1fcab82
commit 7a98eebd32
1 changed files with 1 additions and 1 deletions

2
automt
View File

@ -10,7 +10,7 @@ mtpath=$(dirname $0)
if [ -f $pwf ]; then pas=$(cat $pwf); fi
check_host() {
if [ ! -x $(which nc) ]; then return 0; fi
if nc -z $1 $2; then return 0; fi
if ping -q -c 1 -w 5 $1 >/dev/null 2>&1 ; then return 0; fi
return 1
}