diff --git a/mm-scripts.sh b/mm-scripts.sh index 1364caf..dd415ce 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -45,13 +45,13 @@ MMCRONCHECK(){ [ ${#OUT} = 0 ] && /bin/ip route add default via 10.10.0.1 fi - # if [ -f ${TMPFOLDER}/mm.stop ]; then - # /usr/local/bin/mm check q >/dev/null 2>&1 - # else - # echo -e "$(date) - Starting log #############################" >> ${outputlogfile} - # /usr/local/bin/mm check q >> ${outputlogfile} - # echo -e "$(date) - Finished log #############################" >> ${outputlogfile} - # fi + if [ -f ${TMPFOLDER}/mm.stop ]; then + /usr/local/bin/mm check q >/dev/null 2>&1 + else + echo -e "$(date) - Starting log #############################" >> ${outputlogfile} + /usr/local/bin/mm check q >> ${outputlogfile} + echo -e "$(date) - Finished log #############################" >> ${outputlogfile} + fi