Update mm-scripts.sh
This commit is contained in:
@@ -233,10 +233,15 @@ MMSTART(){
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
|
||||
elif [ ${cc} -eq 1 ] && [ "${zerogw}" == "${VPN_INTERFACE}" ] && [ "${defaultgw}" != "${VPN_INTERFACE}" ]; then
|
||||
echo -en "Fixing... "
|
||||
|
||||
echo -e "$(date) - DEFAULT ROUTES FAILURE\n-------------------------------------------------------------------" >> ${LOGFOLDER}/iproutes.log
|
||||
/bin/ip r >> ${LOGFOLDER}/iproutes.log
|
||||
echo -e "\n" >> ${LOGFOLDER}/iproutes.log
|
||||
|
||||
/bin/ip route del default
|
||||
/bin/ip route add default dev ${VPN_INTERFACE}
|
||||
SENDNOTICE "MM FIX" "Default route failure, default route re-added"
|
||||
echo -en "Fixing... "
|
||||
|
||||
elif [ ${cc} -eq 10 ]; then
|
||||
echo -e "${idsCL[Red]}Could not confirm default routes, restarting system!${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user