Update mm-scripts.sh
This commit is contained in:
@@ -101,8 +101,10 @@ MMSTART(){
|
|||||||
|
|
||||||
if [ "${zerogw}" != "${defaultgw}" ]; then
|
if [ "${zerogw}" != "${defaultgw}" ]; then
|
||||||
[ $VERBOSE = true ] && echo "$(date) - Adding VPN default routes" >> $logfile
|
[ $VERBOSE = true ] && echo "$(date) - Adding VPN default routes" >> $logfile
|
||||||
|
echo -en "${idsCL[LightCyan]}Adding VPN default routes... ${idsCL[Default]}"
|
||||||
/bin/ip route del default via 10.10.0.1
|
/bin/ip route del default via 10.10.0.1
|
||||||
/bin/ip route add default via ${zerogw}
|
/bin/ip route add default via ${zerogw}
|
||||||
|
echo -e "${idsCL[Green]} done${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${GOFORSTART} = true ]; then
|
if [ ${GOFORSTART} = true ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user