summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard-leipzig/luasrc/model/cbi
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-19 22:45:08 +0000
committerSteven Barth <steven@midlink.org>2008-09-19 22:45:08 +0000
commit71adba8a50570257892b60dd9872191c54dd7041 (patch)
treed788f7b225a342e21978fc46e9da8d47206e9e0a /applications/luci-ffwizard-leipzig/luasrc/model/cbi
parent10db2c2637eeda14d6e9d11fb2be5b7dc89918d1 (diff)
FF-Wizard: Create a forwarding rule for intraff traffic, fix some function definitions
Diffstat (limited to 'applications/luci-ffwizard-leipzig/luasrc/model/cbi')
-rw-r--r--applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua15
1 files changed, 1 insertions, 14 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index 54eeb30c05..d7cf400945 100644
--- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
+++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
@@ -78,26 +78,13 @@ end
client = f:field(Flag, "client", "WLAN-DHCP anbieten")
client:depends("wifi", "1")
client.rmempty = true
-function client.cfgvalue(self, section)
- return uci:get("freifunk", "wizard", "client")
-end
-function client.write(self, section, value)
- uci:set("freifunk", "wizard", "client", value)
- uci:save("freifunk")
-end
olsr = f:field(Flag, "olsr", "OLSR einrichten")
+olsr.rmempty = true
share = f:field(Flag, "sharenet", "Eigenen Internetzugang freigeben")
share.rmempty = true
-function share.cfgvalue(self, section)
- return uci:get("freifunk", "wizard", "sharenet")
-end
-function share.write(self, section, value)
- uci:set("freifunk", "wizard", "sharenet", value)
- uci:save("freifunk")
-end