Update mm-scripts.sh

This commit is contained in:
2023-04-02 21:25:22 -05:00
parent 924b2c848b
commit b2223f8ada

View File

@@ -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
;;