Update mm-scripts.sh
This commit is contained in:
@@ -155,6 +155,7 @@ MMSTART(){
|
|||||||
if [ ${vpnuptime} -ge 86400 ]; then
|
if [ ${vpnuptime} -ge 86400 ]; then
|
||||||
echo "$(date) - 24hr session limit reached, restarting vpn & services" >> $logfile
|
echo "$(date) - 24hr session limit reached, restarting vpn & services" >> $logfile
|
||||||
echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services ."
|
echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services ."
|
||||||
|
[ -f ${MMFOLDER}/mm.noservices ] rv="vpn" || rv=""
|
||||||
MMSTOP >/dev/null 2>&1
|
MMSTOP >/dev/null 2>&1
|
||||||
echo -en "."
|
echo -en "."
|
||||||
read -et 10
|
read -et 10
|
||||||
@@ -163,7 +164,7 @@ MMSTART(){
|
|||||||
echo -en "."
|
echo -en "."
|
||||||
read -et 10
|
read -et 10
|
||||||
echo -en "."
|
echo -en "."
|
||||||
MMSTART start >/dev/null 2>&1
|
MMSTART start ${rv} >/dev/null 2>&1
|
||||||
echo -e " ${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e " ${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1344,11 +1345,12 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
|||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
[ -f ${MMFOLDER}/mm.noservices ] rv="vpn" || rv=""
|
||||||
MMSTOP
|
MMSTOP
|
||||||
echo -en "${idsCL[LightCyan]}Pausing for 30s to get new VPN WAN IP, or press any key to continue with possibly getting a new address ... ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Pausing for 30s to get new VPN WAN IP, or press any key to continue with possibly getting a new address ... ${idsCL[Default]}"
|
||||||
read -et 30 -n 1
|
read -et 30 -n 1
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
MMSTART ${action}
|
MMSTART ${action} ${rv}
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
if [ -f ${MMFOLDER}/mm.stop ]; then
|
if [ -f ${MMFOLDER}/mm.stop ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user