Update mm-scripts.sh
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
action="$1"
|
||||
|
||||
VERBOSE=true
|
||||
|
||||
|
||||
source /opt/idssys/defaults/colors.inc
|
||||
source /opt/idssys/defaults/default.inc
|
||||
@@ -35,7 +37,8 @@ MMSTART(){
|
||||
echo "$(date) - Checking VPN..." >> $logfile
|
||||
mmsv='Verifying'
|
||||
fi
|
||||
echo "$(date) - ${mmsv} VPN..." >> $logfile
|
||||
|
||||
#[ $VERBOSE = true ] echo "$(date) - ${mmsv} VPN..." >> $logfile
|
||||
|
||||
|
||||
OUT=$(ip link | grep "$VPN_INTERFACE")
|
||||
@@ -91,6 +94,7 @@ MMSTART(){
|
||||
MMSTOP
|
||||
sleep 1m
|
||||
"${VPN_START[@]}"
|
||||
sleep 5s
|
||||
rm -f /opt/mm.stop
|
||||
exit 1
|
||||
fi
|
||||
@@ -111,6 +115,7 @@ MMSTART(){
|
||||
MMSTOP
|
||||
sleep 1m
|
||||
"${VPN_START[@]}"
|
||||
sleep 5s
|
||||
rm -f /opt/mm.stop
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user