diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-05-23 14:06:21 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-05-23 14:06:21 +0000 |
commit | 542fa0e49329a8087719b56cc17613cce122b6b5 (patch) | |
tree | d88fe261e8de562f451256ae2a9cbaefb40a78e9 /applications/luci-meshwizard/luasrc | |
parent | 11d79aa613f64f483a416763929f15ca4171012e (diff) |
respect community settings for using VAP in luci-meshwizard
Diffstat (limited to 'applications/luci-meshwizard/luasrc')
-rw-r--r-- | applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua b/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua index 3a52419e9a..a8d07cbece 100644 --- a/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua +++ b/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua @@ -10,6 +10,7 @@ local mesh_network = ip.IPv4(uci:get_first(community, "community", "mesh_network local community_ipv6 = uci:get_first(community, "community", "ipv6") or 0 local community_ipv6mode = uci:get_first(community, "community", "ipv6_config") or "static" local meshkit_ipv6 = uci:get("meshwizard", "ipv6", "enabled") or 0 +local community_vap = uci:get_first(community, "community", "vap") or 0 m = Map("meshwizard", translate("Wizard"), translate("This wizard will assist you in setting up your router for Freifunk " .. "or another similar wireless community network.")) @@ -151,6 +152,9 @@ uci:foreach("wireless", "wifi-device", function(section) translate("This will setup a new virtual wireless interface in Access Point mode.")) vap:depends(device .. "_dhcp", "1") vap.rmempty = true + if community_vap == "1" then + vap.default = "1" + end end end) |