From: Vasilis Tsiligiannis Date: Tue, 2 Jun 2009 21:09:43 +0000 (+0000) Subject: [applications] luci-olsr: Fix enable option for interfaces X-Git-Tag: 0.9.0~270 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1dcfe0d19a8c47d87b8afbe800abdfb9bdbfed67;p=oweals%2Fluci.git [applications] luci-olsr: Fix enable option for interfaces --- diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index 9f02b75ea..74e2ba0d5 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -101,6 +101,9 @@ ign = i:option(Flag, "ignore", "Enable") ign.enabled = "0" ign.disabled = "1" ign.rmempty = false +function ign.cfgvalue(self, section) + return Flag.cfgvalue(self, section) or "0" +end network = i:option(ListValue, "interface", translate("network")) luci.tools.webadmin.cbi_add_networks(network)