Changeset 6799
- Timestamp:
- 01/27/11 16:23:43 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
luci/branches/luci-0.10/applications/luci-ffwizard/luasrc/model/cbi/freifunk/ffwizard.lua
r6794 r6799 102 102 -------------------- View -------------------- 103 103 f = SimpleForm("ffwizward", "Freifunkassistent", 104 "Dieser Assistent unterstützt Sie bei der Einrichtung des Routers für das Freifunknetz.")104 translate("This wizard will assist you in setting up your router for your local Freifunk network or another similar wireless community network.")) 105 105 106 106 -- if password is not set or default then force the user to set a new one 107 107 if sys.exec("diff /rom/etc/passwd /etc/passwd") == "" then 108 pw1 = f:field(Value, "pw1", translate(" password"))108 pw1 = f:field(Value, "pw1", translate("Password")) 109 109 pw1.password = true 110 110 pw1.rmempty = false 111 111 112 pw2 = f:field(Value, "pw2", translate(" confirmation"))112 pw2 = f:field(Value, "pw2", translate("Confirmation")) 113 113 pw2.password = true 114 114 pw2.rmempty = false … … 123 123 local cc = uci:get(community, "wifi_device", "country") or "DE" 124 124 125 main = f:field(Flag, "netconfig", "Netzwerk einrichten", "Setzen Sie den Haken, wenn Sie Ihr Freifunk Netzwerk einrichten wollen.")125 main = f:field(Flag, "netconfig", translate("Configure network"), translate("Select this checkbox to configure your network interfaces.")) 126 126 uci:foreach("wireless", "wifi-device", 127 127 function(section) 128 128 local device = section[".name"] 129 129 local hwtype = section.type 130 131 local syscc = uci:get("wireless", device, "country") 130 local syscc = section.country 131 132 132 if not syscc then 133 133 if hwtype == "atheros" then … … 137 137 sys.exec("iw reg set " .. cc) 138 138 elseif hwtype == "broadcom" then 139 -- verify that ot works!140 139 sys.exec ("wlc country " .. cc) 141 140 end … … 663 662 local bssid = uci:get_all(community, "wifi_iface", "bssid") or "02:CA:FF:EE:BA:BE" 664 663 local mrate = 5500 664 devconfig.diversity = sec.diversity or "1" 665 if sec.txantenna then 666 devconfig.txantenna = sec.txantenna 667 end 668 if sec.rxantenna then 669 devconfig.rxantenna = sec.rxantenna 670 end 671 665 672 -- set bssid, see https://kifuse02.pberg.freifunk.net/moin/channel-bssid-essid for schema 666 673 if channel and channel ~= "default" then
