summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2009-06-02 21:09:43 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2009-06-02 21:09:43 +0000
commit1dcfe0d19a8c47d87b8afbe800abdfb9bdbfed67 (patch)
tree63e9be8a9f645e16183afdee106455153e18d6a5 /applications
parentae5cc08ac8769118f672720ac76300fe4d2b6765 (diff)
[applications] luci-olsr: Fix enable option for interfaces
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua3
1 files changed, 3 insertions, 0 deletions
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)