Update mm-scripts.sh
This commit is contained in:
@@ -96,9 +96,14 @@ MMSTART(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
||||||
defaultgw=$(ip route show | grep default | 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
|
if [ "${zerogw}" != "${defaultgw}" ]; then
|
||||||
[ $VERBOSE = true ] && echo "$(date) - Adding VPN default routes" >> $logfile
|
[ $VERBOSE = true ] && echo "$(date) - Adding VPN default routes" >> $logfile
|
||||||
echo -en "${idsCL[LightCyan]}Adding VPN default routes... ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Adding VPN default routes... ${idsCL[Default]}"
|
||||||
@@ -107,9 +112,7 @@ MMSTART(){
|
|||||||
echo -e "${idsCL[Green]} done${idsCL[Default]}"
|
echo -e "${idsCL[Green]} done${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${GOFORSTART} = true ]; then
|
|
||||||
echo -e "${idsCL[Green]} done${idsCL[Default]}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -en "${idsCL[LightCyan]}Verifing default network routes... ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Verifing default network routes... ${idsCL[Default]}"
|
||||||
checked=false
|
checked=false
|
||||||
|
|||||||
Reference in New Issue
Block a user