add autoreconnect script ( ./automt server user pass )

wsc-master-rebase
cora 2020-10-29 23:27:00 +01:00 committed by Schmappie Eldress
parent 068252a8dd
commit eaa39a0987
1 changed files with 10 additions and 0 deletions

10
automt Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
if [ -z $1 ] || [ -z $2 ] || [ -z $3 ]; then echo "usage: automat server username password"; exit 1; fi
srv=$1
usr=$2
pas=$3
mtpath=$(dirname $0)
while true; do
$mtpath/bin/minetest --go --server $srv --name $usr --password $pas
sleep 2
done