update
This commit is contained in:
@@ -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
4
run.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user