FF-Wizard: Create a forwarding rule for intraff traffic, fix some function definitions
authorSteven Barth <steven@midlink.org>
Fri, 19 Sep 2008 22:45:08 +0000 (22:45 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 19 Sep 2008 22:45:08 +0000 (22:45 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
modules/freifunk/root/etc/config/freifunk

index 54eeb30c05d39fbdc6b5f509dcb6af1a94baaf1a..d7cf400945161b93d53206a386f823d80b4f59c0 100644 (file)
@@ -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
 
 
 
index 28a3191692ba9fdbc514e9ad095afdd2c166cc7f..31964d0bb4cea9662d9212df6a203facc5f2719e 100644 (file)
@@ -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