FF-Wizard: Create a forwarding rule for intraff traffic, fix some function definitions
This commit is contained in:
parent
10db2c2637
commit
71adba8a50
2 changed files with 5 additions and 14 deletions
|
@ -78,26 +78,13 @@ end
|
||||||
client = f:field(Flag, "client", "WLAN-DHCP anbieten")
|
client = f:field(Flag, "client", "WLAN-DHCP anbieten")
|
||||||
client:depends("wifi", "1")
|
client:depends("wifi", "1")
|
||||||
client.rmempty = true
|
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 = f:field(Flag, "olsr", "OLSR einrichten")
|
||||||
|
olsr.rmempty = true
|
||||||
|
|
||||||
share = f:field(Flag, "sharenet", "Eigenen Internetzugang freigeben")
|
share = f:field(Flag, "sharenet", "Eigenen Internetzugang freigeben")
|
||||||
share.rmempty = true
|
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,10 @@ config fw_forwarding lan
|
||||||
option src lan
|
option src lan
|
||||||
option dest freifunk
|
option dest freifunk
|
||||||
|
|
||||||
|
config fw_forwarding fffwd
|
||||||
|
option src freifunk
|
||||||
|
option dest freifunk
|
||||||
|
|
||||||
|
|
||||||
config defaults wifi_device
|
config defaults wifi_device
|
||||||
option channel 1
|
option channel 1
|
||||||
|
|
Loading…
Reference in a new issue