Changeset 6799

Show
Ignore:
Timestamp:
01/27/11 16:23:43 (2 years ago)
Author:
soma
Message:

luci-0.10: Merge r6797 and r6798

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/branches/luci-0.10/applications/luci-ffwizard/luasrc/model/cbi/freifunk/ffwizard.lua

    r6794 r6799  
    102102-------------------- View -------------------- 
    103103f = 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.")) 
    105105 
    106106-- if password is not set or default then force the user to set a new one 
    107107if 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")) 
    109109    pw1.password = true 
    110110    pw1.rmempty = false 
    111111 
    112     pw2 = f:field(Value, "pw2", translate("confirmation")) 
     112    pw2 = f:field(Value, "pw2", translate("Confirmation")) 
    113113    pw2.password = true 
    114114    pw2.rmempty = false 
     
    123123local cc = uci:get(community, "wifi_device", "country") or "DE" 
    124124 
    125 main = f:field(Flag, "netconfig", "Netzwerk einrichten", "Setzen Sie den Haken, wenn Sie Ihr Freifunk Netzwerk einrichten wollen.") 
     125main = f:field(Flag, "netconfig", translate("Configure network"), translate("Select this checkbox to configure your network interfaces.")) 
    126126uci:foreach("wireless", "wifi-device", 
    127127    function(section) 
    128128        local device = section[".name"] 
    129129        local hwtype = section.type 
    130  
    131         local syscc  = uci:get("wireless", device, "country") 
     130        local syscc = section.country 
     131 
    132132        if not syscc then 
    133133            if hwtype == "atheros" then 
     
    137137                sys.exec("iw reg set " .. cc) 
    138138            elseif hwtype == "broadcom" then 
    139                 -- verify that ot works! 
    140139                sys.exec ("wlc country " .. cc) 
    141140            end 
     
    663662        local bssid = uci:get_all(community, "wifi_iface", "bssid") or "02:CA:FF:EE:BA:BE" 
    664663        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 
    665672        -- set bssid, see https://kifuse02.pberg.freifunk.net/moin/channel-bssid-essid for schema 
    666673        if channel and channel ~= "default" then