2 if [ -z $1 ] ||
[ -z $2 ] ||
[ -z $3 ]; then echo "usage: automat server username password"; exit 1; fi
10 if [ -f $pwf ]; then pas
=$
(cat $pwf); fi
12 if [ ! -x $
(which nc
) ]; then return 0; fi
13 if nc
-z $1 $2; then return 0; fi
18 if check_host
$srv $prt; then
19 $mtpath/bin
/minetest
--go --address $srv --name $usr --password $pas --logfile $logfile
20 else echo host is down. waiting
10...
; sleep 10