[packages] ddns-scripts: Retry domain resolving with each iteration

git-svn-id: svn://svn.openwrt.org/openwrt/packages@31212 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2012-04-06 09:35:52 +00:00
parent 2ae2fffaed
commit 88f9cf42c6

View File

@ -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)