=================================================================== RCS file: /cvs/mtctl/mtctl_default.sh,v retrieving revision 1.9 retrieving revision 1.10 diff -u -p -r1.9 -r1.10 --- mtctl/mtctl_default.sh 2023/05/02 18:04:20 1.9 +++ mtctl/mtctl_default.sh 2023/05/02 18:59:16 1.10 @@ -3,7 +3,7 @@ # Purpose: Minetest Server Control # License: Copyright (C) 2021-2022 by Miniontoby #--------------------------------------------------------------------- -VERSION="1.6" +VERSION="1.6.1" config=[] config[0]="no"; config[1]="/usr/local/share/minetest/" @@ -297,7 +297,7 @@ enableMT() { if [[ $(crontab -l | egrep -v "^(#|$)" | grep -q '/usr/bin/mtctl startup'; echo $?) == 1 ]]; then set -f crontab -l > temp - echo '@reboot rm $HOME/.mtctl/.booted 2>/dev/null && /usr/bin/mtctl startup' >> temp + echo '@reboot rm $HOME/.mtctl/.booted 2>/dev/null; /usr/bin/mtctl startup' >> temp cat temp | crontab - rm temp set +f @@ -357,11 +357,11 @@ case $ACTION in startupMT ;; enable) - #mtsetup + mtsetup enableMT "$2" ;; disable) - #mtsetup + mtsetup disableMT "$2" ;; version)