[applications] luci-olsr: Fix enable option for interfaces
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Tue, 2 Jun 2009 21:09:43 +0000 (21:09 +0000)
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Tue, 2 Jun 2009 21:09:43 +0000 (21:09 +0000)
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua

index 9f02b75ea7c4e15505fd897bd6f1a56278a4b0f8..74e2ba0d51150ec866f16a11712e63a4f7dec8fc 100644 (file)
@@ -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)