Update mm-scripts.sh

This commit is contained in:
2023-05-30 22:00:19 -05:00
parent 898a1ff636
commit 49bb590263

View File

@@ -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]}"