Update mm-scripts.sh

This commit is contained in:
2022-12-31 16:58:15 -06:00
parent d075e66a80
commit ca025aa280

View File

@@ -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