update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user