Browse Source

try max. 2 times * 5 secs

master
mxmehl 4 years ago
parent
commit
23cf4050b1
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 4
      status-ip.sh

4
status-ip.sh

@ -3,7 +3,7 @@
CURDIR=$(dirname "$(readlink -f "$0")")
source "$CURDIR"/shared-functions.so
IP=$(wget -T 5 -q -O - $IPSERV4)
IP=$(wget -T 5 -t 2 -q -O - $IPSERV4)
EXIT="$?"
if [ "$var_conn" == "on" ]; then
@ -27,7 +27,7 @@ if [ "$var_conn" == "on" ]; then
# If request was successful, try IPv6 as well
if [ "$EXIT" != "fail" ]; then
IP6=$(wget -T 5 -q -O - $IPSERV6)
IP6=$(wget -T 5 -t 2 -q -O - $IPSERV6)
EXIT="$?"
if ([ "$EXIT" == 4 ] || [ "$EXIT" == 6 ] || [ "$EXIT" == 28 ]); then
TEXT="t/o"

Loading…
Cancel
Save