[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:
parent
2ae2fffaed
commit
88f9cf42c6
@ -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
|
#do update and then loop endlessly, checking ip every check_interval and forcing an updating once every force_interval
|
||||||
|
|
||||||
while [ true ]
|
while [ true ]
|
||||||
do
|
do
|
||||||
|
registered_ip=$(echo $(nslookup "$domain" 2>/dev/null) | grep -o "Name:.*" | grep -o "$ip_regex")
|
||||||
current_ip=$(get_current_ip)
|
current_ip=$(get_current_ip)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user