start_daemon_for_all_ddns_sections expects a event interface argument
from hotplug event [1].  But init script cannot pass such a thing.  Let
the argument default to `wan' to solve this.

[1] 7e76203 [packages] ddns-scripts: add an option to specify the used
interface - default to wan to retain compatibility (#7570)

Signed-off-by: Yousong Zhou <yszhou4t...@gmail.com>
---
 .../files/usr/lib/ddns/dynamic_dns_functions.sh    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 a596932..d1084ff 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
@@ -118,7 +118,7 @@ syslog_echo()
 
 start_daemon_for_all_ddns_sections()
 {
-       local event_interface="$1"
+       local event_interface="${1:-wan}"
 
        SECTIONS=""
        config_cb() 
-- 
1.7.2.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to