Update mm-scripts.sh

This commit is contained in:
2022-10-31 22:00:55 -05:00
parent aeb6c0356a
commit cb77be1472

View File

@@ -32,9 +32,14 @@ MMSTART(){
if [ "${1}" = "start" ] || [ "${1}" = "" ]; then
mmsv='Starting'
echo
echo -en "${idsCL[LightCyan]}Starting the VPN Tunnel ... ${idsCL[Default]}"
"${VPN_START[@]}"
sleep 5s
OUT=$(ip link | grep "$VPN_INTERFACE")
if [ ${#OUT} = 0 ]; then
echo -en "${idsCL[LightCyan]}Starting the VPN Tunnel ... ${idsCL[Default]}"
"${VPN_START[@]}"
sleep 5s
else
echo -e "${idsCL[Green]}The VPN Tunnel is already running ... ${idsCL[Default]}"
fi
else
mmsv='Verifying'
fi