From: Christian Schoenebeck Date: Fri, 10 Oct 2014 20:08:37 +0000 (+0200) Subject: [for-0.12] luci-app-ddns: fix OpenWrt Ticket #18018 in BB release X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fd822574f9bbf40e2cc38b9042299d5e595d8463;p=project%2Fluci.git [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 --- 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"