diff options
author | Steven Barth <steven@midlink.org> | 2008-09-19 22:45:08 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-19 22:45:08 +0000 |
commit | 71adba8a50570257892b60dd9872191c54dd7041 (patch) | |
tree | d788f7b225a342e21978fc46e9da8d47206e9e0a | |
parent | 10db2c2637eeda14d6e9d11fb2be5b7dc89918d1 (diff) |
FF-Wizard: Create a forwarding rule for intraff traffic, fix some function definitions
-rw-r--r-- | applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | 15 | ||||
-rw-r--r-- | 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 |