From 8c015b5d204a8f06bd4f5c7f11e837cac15ecbae Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Fri, 6 Apr 2012 09:35:52 +0000 Subject: [PATCH] [packages] ddns-scripts: Retry domain resolving with each iteration SVN-Revision: 31212 --- net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh index d1f8460bfc..0c5718b046 100755 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh @@ -272,14 +272,11 @@ verbose_echo "time_since_update = $human_time_since_update hours" - -registered_ip=$(echo $(nslookup "$domain" 2>/dev/null) | grep -o "Name:.*" | grep -o "$ip_regex") - - #do update and then loop endlessly, checking ip every check_interval and forcing an updating once every force_interval while [ true ] do + registered_ip=$(echo $(nslookup "$domain" 2>/dev/null) | grep -o "Name:.*" | grep -o "$ip_regex") current_ip=$(get_current_ip) -- 2.30.2