diff --git a/mm-scripts.sh b/mm-scripts.sh index 4005309..4822820 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -96,9 +96,14 @@ MMSTART(){ fi else + zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3) defaultgw=$(ip route show | grep default | cut -d' ' -f 3) + if [ ${GOFORSTART} = true ]; then + echo -e "${idsCL[Green]} done${idsCL[Default]}" + fi + if [ "${zerogw}" != "${defaultgw}" ]; then [ $VERBOSE = true ] && echo "$(date) - Adding VPN default routes" >> $logfile echo -en "${idsCL[LightCyan]}Adding VPN default routes... ${idsCL[Default]}" @@ -107,9 +112,7 @@ MMSTART(){ echo -e "${idsCL[Green]} done${idsCL[Default]}" fi - if [ ${GOFORSTART} = true ]; then - echo -e "${idsCL[Green]} done${idsCL[Default]}" - fi + echo -en "${idsCL[LightCyan]}Verifing default network routes... ${idsCL[Default]}" checked=false