From 4f31994e60dbd9161ac110b5dc398e7e93225d29 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 22 Nov 2022 22:48:24 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- mm-scripts.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults.inc b/defaults.inc index 75f3aa7..783af8b 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='1.10312022' +VERS='1.11222022' MMSRV=$(/sbin/ip -o -4 addr list ens160 | awk '{print $4}' | cut -d/ -f1) diff --git a/mm-scripts.sh b/mm-scripts.sh index cef4595..503492a 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -3,7 +3,7 @@ action="$1" -VERBOSE=true +VERBOSE=false SENDNOTICE=true @@ -126,7 +126,7 @@ MMSTART(){ mmip="" cc=0 until [ "${scip}" != "" ] && [ "${mmip}" != "" ] && [ "${scip}" != ";; connection timed out; no servers could be reached" ] && [ "${mmip}" != ";; connection timed out; no servers could be reached" ]; do - scip=$(dig +short sc1.scity.us @ns1.scity.us) + scip=$(dig +short sc1.scity.us @9.9.9.9) mmip=$(dig +short myip.opendns.com @resolver1.opendns.com) if ([ "${scip}" = "" ] || [ "${mmip}" = "" ]) && [ ${cc} -eq 10 ]; then echo -e "${idsCL[Red]}Cannot get an WAN address, restarting system!${idsCL[Default]}"