Am 03.10.2014 um 09:31 schrieb OpenWrt:
> #18018: luci-app-ddns is missing the event interface option
> -------------------------+-----------------------------------
>   Reporter:  techstep@…  |      Owner:  developers
>       Type:  defect      |     Status:  new
>   Priority:  normal      |  Milestone:
>  Component:  packages    |    Version:  Barrier Breaker 14.07
> Resolution:              |   Keywords:  luci-app-ddns
> -------------------------+-----------------------------------
> 
> Comment (by chris5560):
> 
>  Attached patch can be used for luci-0.12 AND luci-trunk
>  I current luci-trunk is the same error.
>  It's an svn patch for luci svn
> 
>  Christian
> 
> --
> Ticket URL: <https://dev.openwrt.org/ticket/18018#comment:1>
> OpenWrt <http://openwrt.org>
> Opensource Wireless Router Technology
> 
Hi,
please could somebody implement this patch short term as backport to LuCI 0.12 
and replace it inside BB14.07 packages.

Many thanks

Christian

Index: applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
===================================================================
--- applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua	(Revision 10533)
+++ applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua	(Arbeitskopie)
@@ -26,6 +26,10 @@
 
 s:option(Flag, "enabled", translate("Enable"))
 
+interface = s:option(ListValue, "interface", translate("Event interface"), translate("On which interface up should start the ddns script process."))
+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"
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to