This commit is contained in:
2023-02-26 22:03:16 -06:00
parent 76ca238ba4
commit 4144d65aea
2 changed files with 5 additions and 1 deletions

View File

@@ -369,6 +369,7 @@ MMSTOP(){
[ "$(ip route show | grep default | cut -d' ' -f 3)" != "10.10.0.1" ] && /bin/ip route add default via 10.10.0.1 && ip route del $(cat ${MMFOLDER}/vpninfo.address)
rm -f ${MMFOLDER}/vpninfo.*
rm -f ${MMFOLDER}/noservices*
[ $VERBOSE = true ] && echo "$(date) - Added default route back in" >> $logfile
echo -e "${idsCL[Green]} done${idsCL[Default]}"
@@ -563,6 +564,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
echo -e " ${idsCL[Yellow]}check${idsCL[Default]} --> Crontab job to maintain VPN and services, run */1 min)"
echo -e " ${idsCL[Yellow]}status${idsCL[Default]} --> View VPN and service status"
echo -e " ${idsCL[Yellow]}update${idsCL[Default]} --> Check for and install new updates"
echo -e " ${idsCL[Yellow]}clear${idsCL[Default]} --> Clear all tmp files"
echo ""
echo ""
exit 0;;

4
run.sh
View File

@@ -61,7 +61,9 @@ if [ "${1}" == "update" ]; then
fi
else
[ "${1}" == "clear" ] && rm -f ${MMFOLDER}/mm.*
if [ "${1}" == "clear" ]; then
rm -f ${MMFOLDER}/mm.*
fi
if [ -f ${MMFOLDER}/mm.checking ] && [ "${1}" != "status" ]; then
fd=$(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.checking))
if [ ${fd} -gt 900 ]; then