From 71adba8a50570257892b60dd9872191c54dd7041 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 19 Sep 2008 22:45:08 +0000 Subject: FF-Wizard: Create a forwarding rule for intraff traffic, fix some function definitions --- .../luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | 15 +-------------- modules/freifunk/root/etc/config/freifunk | 4 ++++ 2 files changed, 5 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 54eeb30c0..d7cf40094 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 diff --git a/modules/freifunk/root/etc/config/freifunk b/modules/freifunk/root/etc/config/freifunk index 28a319169..31964d0bb 100644 --- a/modules/freifunk/root/etc/config/freifunk +++ b/modules/freifunk/root/etc/config/freifunk @@ -39,6 +39,10 @@ config fw_forwarding lan option src lan option dest freifunk +config fw_forwarding fffwd + option src freifunk + option dest freifunk + config defaults wifi_device option channel 1 -- cgit v1.2.3