[for-0.12] luci-app-ddns: fix OpenWrt Ticket #18018 in BB release 224/head
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>
Fri, 10 Oct 2014 20:08:37 +0000 (22:08 +0200)
committerChristian Schoenebeck <christian.schoenebeck@gmail.com>
Fri, 10 Oct 2014 20:08:37 +0000 (22:08 +0200)
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 <christian.schoenebeck@gmail.com>
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua

index f318b1be5460aea8714545ef2251fcf7846a5c8d..1c7e04a96eb6dc46eaa9fe3a925f93fb443e2ce3 100644 (file)
@@ -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"