update
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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]}"
|
||||
|
||||
Reference in New Issue
Block a user