Update mm-scripts.sh
This commit is contained in:
@@ -763,8 +763,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
|||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
elif [ ! -f ${MMFOLDER}/mm.stop ] && [ -f ${MMFOLDER}/mm.stop.checking ]; then
|
elif [ ! -f ${MMFOLDER}/mm.stop ] && [ -f ${MMFOLDER}/mm.stop.checking ]; then
|
||||||
echo 'yes'
|
|
||||||
|
|
||||||
checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)`
|
checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)`
|
||||||
if [ $checkstopped -gt 900 ]; then
|
if [ $checkstopped -gt 900 ]; then
|
||||||
rm -f ${MMFOLDER}/mm.stop*
|
rm -f ${MMFOLDER}/mm.stop*
|
||||||
@@ -782,7 +780,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
|||||||
fi
|
fi
|
||||||
[ "${action}" != "status" ] && touch ${MMFOLDER}/mm.stop.checking
|
[ "${action}" != "status" ] && touch ${MMFOLDER}/mm.stop.checking
|
||||||
[ "${2}" == "vpn" ] && touch ${MMFOLDER}/mm.noservices
|
[ "${2}" == "vpn" ] && touch ${MMFOLDER}/mm.noservices
|
||||||
MMSTART ${action} ${2}
|
[ ! -f ${MMFOLDER}/mm.stop ] && MMSTART ${action} ${2}
|
||||||
[ "${action}" != "status" ] && rm -f ${MMFOLDER}/mm.stop.checking
|
[ "${action}" != "status" ] && rm -f ${MMFOLDER}/mm.stop.checking
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user