Update mm-scripts.sh
This commit is contained in:
@@ -212,9 +212,9 @@ MMSTART(){
|
|||||||
# if [ "${zerogw}" != "${defaultgw}" ]; then
|
# if [ "${zerogw}" != "${defaultgw}" ]; then
|
||||||
# if [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
# if [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
||||||
if [ "${zerogw}" != "${defaultgw}" ] || [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
if [ "${zerogw}" != "${defaultgw}" ] || [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
||||||
echo "$(date) - Adding VPN default routes" >> ${MM_LOGFILE}
|
echo "$(date) - Adding VPN IP Routes" >> ${MM_LOGFILE}
|
||||||
|
|
||||||
msg="Adding VPN default routes"
|
msg="Adding VPN IP Routes"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||||
@@ -581,7 +581,7 @@ MMSTOP(){
|
|||||||
/bin/ip route del ${route} via ${DEFAULT_GW} dev eth0
|
/bin/ip route del ${route} via ${DEFAULT_GW} dev eth0
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
[ $VERBOSE = true ] && echo "$(date) - Added default routes back in" >> ${MM_LOGFILE}
|
[ $VERBOSE = true ] && echo "$(date) - Added Default IP Routes back in" >> ${MM_LOGFILE}
|
||||||
|
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user