X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Fddns-scripts%2Ffiles%2Fusr%2Flib%2Fddns%2Fdynamic_dns_functions.sh;h=a5c44d7787d69e40cf8821e0dc74d456890c251e;hp=82f01ca830ac34f2e55b701464f8026410909cb5;hb=90811516a622de7d1a32866029806332c77be0f5;hpb=a00f9da027cf5db527eaf6605240f1d9bc87f35a;ds=sidebyside diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh index 82f01ca830..a5c44d7787 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh @@ -28,7 +28,7 @@ load_all_config_options() # after we're done with it. For reference # the $1 variable is the name of the option # and $2 is the name of the section - config_cb() + config_cb() { if [ ."$2" = ."$section_id" ]; then option_cb() @@ -89,7 +89,7 @@ get_current_ip() current_ip=$(echo $( wget -O - $addr 2>/dev/null) | grep -o "$ip_regex") fi done - + #here we hard-code the dyndns checkip url in case no url was specified if [ -z "$current_ip" ] then @@ -120,6 +120,6 @@ start_daemon_for_all_ddns_sections() for section in $SECTIONS do - /usr/lib/ddns/dynamic_dns_updater.sh $section 0& + /usr/lib/ddns/dynamic_dns_updater.sh $section 0 > /dev/null 2>&1 & done }