Browse Source

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

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos 10 years ago
parent
commit
f7d0b83aef
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

+ 1
- 1
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh View File

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