From fd822574f9bbf40e2cc38b9042299d5e595d8463 Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Fri, 10 Oct 2014 22:08:37 +0200 Subject: [PATCH] [for-0.12] luci-app-ddns: fix OpenWrt Ticket #18018 in BB release fix for OpenWrt Ticket #18018 in BB 14.07 release. Without fix the application writes a config without event interface which causes ddns-scripts to NEVER start. Signed-off-by: Christian Schoenebeck --- applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua b/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua index f318b1be54..1c7e04a96e 100644 --- a/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua +++ b/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua @@ -26,6 +26,10 @@ s.anonymous = false s:option(Flag, "enabled", translate("Enable")) +interface = s:option(ListValue, "interface", translate("Event interface"), translate("Network on which the ddns-updater scripts will be started")) +luci.tools.webadmin.cbi_add_networks(interface) +interface.default = "wan" + svc = s:option(ListValue, "service_name", translate("Service")) svc.rmempty = false svc.default = "dyndns.org" -- 2.30.2