Ver código fonte

ddns: Allow running ddns using the /etc/init.d/ddns script

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos 10 anos atrás
pai
commit
f7d0b83aef

+ 1
- 1
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh Ver arquivo

@@ -131,7 +131,7 @@ start_daemon_for_all_ddns_sections()
131 131
 	do
132 132
 		local iface
133 133
 		config_get iface "$section" interface "wan"
134
-		[ "$iface" = "$event_interface" ] || continue
134
+		[ -z "$event_interface" -o "$iface" = "$event_interface" ] || continue
135 135
 		/usr/lib/ddns/dynamic_dns_updater.sh $section 0 > /dev/null 2>&1 &
136 136
 	done
137 137
 }