diff --git a/mm-scripts.sh b/mm-scripts.sh index f075c18..de781a4 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -763,8 +763,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then echo exit 1 elif [ ! -f ${MMFOLDER}/mm.stop ] && [ -f ${MMFOLDER}/mm.stop.checking ]; then - echo 'yes' - checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)` if [ $checkstopped -gt 900 ]; then rm -f ${MMFOLDER}/mm.stop* @@ -782,7 +780,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then fi [ "${action}" != "status" ] && touch ${MMFOLDER}/mm.stop.checking [ "${2}" == "vpn" ] && touch ${MMFOLDER}/mm.noservices - MMSTART ${action} ${2} + [ ! -f ${MMFOLDER}/mm.stop ] && MMSTART ${action} ${2} [ "${action}" != "status" ] && rm -f ${MMFOLDER}/mm.stop.checking ;;