From 1dcfe0d19a8c47d87b8afbe800abdfb9bdbfed67 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Tue, 2 Jun 2009 21:09:43 +0000 Subject: [PATCH] [applications] luci-olsr: Fix enable option for interfaces --- applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index 9f02b75ea7..74e2ba0d51 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) -- 2.30.2