From eaa39a09876ff772e970f168015410833f349035 Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 29 Oct 2020 23:27:00 +0100 Subject: [PATCH] add autoreconnect script ( ./automt server user pass ) --- automt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 automt diff --git a/automt b/automt new file mode 100755 index 000000000..32f4a1aa7 --- /dev/null +++ b/automt @@ -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