Update mm-scripts.sh
This commit is contained in:
@@ -41,6 +41,7 @@ MMCRONCHECK(){
|
||||
[ ${#OUT} = 0 ] && /bin/ip route add default via ${DEFAULT_GW}
|
||||
fi
|
||||
|
||||
if [ "${SERVICESCHECK}" != "" ]; then
|
||||
if [ $(date +%u) -eq 6 ] && [ $(date +%H)$(date +%M) -ge 0400 ] && [ $(date +%H)$(date +%M) -le 0405 ] ; then
|
||||
if [ $(expr `date +%s` - $(stat -c %Y ${TMPFOLDER}/vers.info)) -gt 600 ]; then
|
||||
UPDATESERVICE service all q >/dev/null 2>&1
|
||||
@@ -55,6 +56,7 @@ MMCRONCHECK(){
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f ${TMPFOLDER}/mm.stop ]; then
|
||||
/usr/local/bin/mm check q >/dev/null 2>&1
|
||||
@@ -70,7 +72,7 @@ MMCRONCHECK(){
|
||||
MMSTART(){
|
||||
[ $VERBOSE = true ] && chktmstart=`date +%s`
|
||||
([ "${1}" == "start" ] || [ "${1}" == "check" ]) && touch ${TMPFOLDER}/mm.stop.checking
|
||||
[ "${2}" == "vpn" ] && touch ${TMPFOLDER}/mm.noservices
|
||||
([ "${2}" == "vpn" ] || [ -f ${MMFOLDER}/mm.noservices ]) && touch ${TMPFOLDER}/mm.noservices
|
||||
if [ "${1}" = "start" ] || [ "${1}" = "restart" ] || [ "${1}" = "" ]; then
|
||||
GOFORSTART=true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user