This commit is contained in:
2023-11-08 14:24:27 -06:00
parent ea80bdf82a
commit 4c563a5b04
2 changed files with 6 additions and 7 deletions

View File

@@ -95,9 +95,8 @@ MMSTART(){
mmsv='Starting'
echo
OUT=$(/bin/ip link | grep "${VPN_INTERFACE}")
echo "$(date) - ${mmsv} VPN..." >> ${MM_LOGFILE}
if [ ${#OUT} = 0 ]; then
echo "$(date) - ${mmsv} VPN..." >> ${MM_LOGFILE}
msg="Setting up the VPN Tunnel config"
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
@@ -296,7 +295,7 @@ MMSTART(){
echo
echo -e "${idsCL[Red]}Cannot get an WAN address, restarting system!${idsCL[Default]}"
echo "$(date) - Cannot get an WAN address, restarting system! wanip(${REALWANIP}) vpnip(${mmip})" >> ${MM_LOGFILE}
[ $VERBOSE = true ] && echo "$(date) - Default Routes: zerogw(${zerogw}) defaultgw(${defaultgw})" >> ${MM_LOGFILE}
# [ $VERBOSE = true ] && echo "$(date) - Default Routes: zerogw(${zerogw}) defaultgw(${defaultgw})" >> ${MM_LOGFILE}
SENDNOTICE "Network Failure" "Cannot get an WAN address, will try and restart the VPN" 1
touch ${TMPFOLDER}/mm.vpn.fail
MMSTOP >/dev/null 2>&1