ddns: Allow running ddns using the /etc/init.d/ddns script
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 8 Jun 2014 12:05:23 +0000 (14:05 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 8 Jun 2014 12:05:23 +0000 (14:05 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

index a59693210ca0e316ccf7e7650ebd3ecbd0f2cef3..6e498144811fc510594098dd9c9cf22b87d4f238 100644 (file)
@@ -131,7 +131,7 @@ start_daemon_for_all_ddns_sections()
        do
                local iface
                config_get iface "$section" interface "wan"
-               [ "$iface" = "$event_interface" ] || continue
+               [ -z "$event_interface" -o "$iface" = "$event_interface" ] || continue
                /usr/lib/ddns/dynamic_dns_updater.sh $section 0 > /dev/null 2>&1 &
        done
 }