Update mm-scripts.sh
This commit is contained in:
@@ -134,7 +134,8 @@ MMSTART(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
[ $VERBOSE = true ] && echo "$(date) - ${mmsv} VPN..." >> $logfile
|
[ $VERBOSE = true ] && echo "$(date) - ${mmsv} VPN..." >> $logfile
|
||||||
|
|
||||||
|
echo "HERE: $(/bin/ip link)"
|
||||||
|
|
||||||
OUT=$(/bin/ip link | grep "$VPN_INTERFACE")
|
OUT=$(/bin/ip link | grep "$VPN_INTERFACE")
|
||||||
if [ ${#OUT} = 0 ]; then
|
if [ ${#OUT} = 0 ]; then
|
||||||
@@ -152,6 +153,7 @@ MMSTART(){
|
|||||||
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
||||||
exit 1
|
exit 1
|
||||||
elif [ -f ${TMPFOLDER}/mm.vpn.fail2 ]; then
|
elif [ -f ${TMPFOLDER}/mm.vpn.fail2 ]; then
|
||||||
|
echo -e "${idsCL[Red]} failed, shutting down system${idsCL[Default]}"
|
||||||
echo "$(date) - VPN Failure #3 - Shutting down Media Management systems" >> $logfile
|
echo "$(date) - VPN Failure #3 - Shutting down Media Management systems" >> $logfile
|
||||||
SENDNOTICE "VPN Failure" "Final Failure, shutting down system" 2
|
SENDNOTICE "VPN Failure" "Final Failure, shutting down system" 2
|
||||||
MMSTOP
|
MMSTOP
|
||||||
|
|||||||
Reference in New Issue
Block a user