Update mm-scripts.sh

This commit is contained in:
2022-04-18 19:58:31 -05:00
parent 31ef071d39
commit 57d5a68243

View File

@@ -122,9 +122,17 @@ MMSTOP(){
echo
echo -en "${idsCL[LightCyan]}Stopping VPN Tunnel... ${idsCL[Default]}"
"${VPN_STOP[@]}"
echo -e "${idsCL[Green]} done${idsCL[Default]}"
checked=false
until [ "${checked}" = "" ]; do
OUT=`ip a show $VPN_INTERFACE up` >/dev/null 2>&1
if [ ${#OUT} = 0 ]; then
checked=""
fi
done
/bin/ip route add default via 10.10.0.1
echo -e "${idsCL[Green]} done${idsCL[Default]}"
echo
echo -e "${idsCL[Red]}All services have been stopped${idsCL[Default]}"