diff options
author | Steven Barth <steven@midlink.org> | 2008-06-07 07:58:35 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-07 07:58:35 +0000 |
commit | a7a2afdb0a51f28a716d34698152863c59eaf0ca (patch) | |
tree | 22e9246e786f2f434a89a8d7db820c20668493a6 /applications/luci-ffwizard-leipzig/luasrc | |
parent | 0eefbbe91d4aa69559eecdc7203e6c52565fc8a2 (diff) |
* libs/uci: Fixed uci.delete_all
* Fixed Freifunk wizard
Diffstat (limited to 'applications/luci-ffwizard-leipzig/luasrc')
-rw-r--r-- | applications/luci-ffwizard-leipzig/luasrc/controller/luci_ffwizard_leipzig/wizard.lua | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/controller/luci_ffwizard_leipzig/wizard.lua b/applications/luci-ffwizard-leipzig/luasrc/controller/luci_ffwizard_leipzig/wizard.lua index 84a22238e..8a01f055c 100644 --- a/applications/luci-ffwizard-leipzig/luasrc/controller/luci_ffwizard_leipzig/wizard.lua +++ b/applications/luci-ffwizard-leipzig/luasrc/controller/luci_ffwizard_leipzig/wizard.lua @@ -195,29 +195,29 @@ function configure_freifunk() function (section) local device = section[".name"] - if luci.http.formvalue("wifi."..iface) then + if luci.http.formvalue("wifi."..device) then uci.delete_all("wireless", "wifi-iface", function (section) return (section.device == device) end) - end - - uci.tset("wireless", device, { - disabled = "0", - mode = "11g", - txantenna = "1", - rxantenna = "1", - channel = uci.get("freifunk", "community", "channel") - }) - uci.section("wireless", "wifi-iface", nil, { - device = iface, - network = "ff", - mode = "adhoc", - ssid = uci.get("freifunk", "community", "essid"), - bssid = uci.get("freifunk", "community", "bssid"), - txpower = 13 - }) + uci.tset("wireless", device, { + disabled = "0", + mode = "11g", + txantenna = "1", + rxantenna = "1", + channel = uci.get("freifunk", "community", "channel") + }) + + uci.section("wireless", "wifi-iface", nil, { + device = device, + network = "ff", + mode = "adhoc", + ssid = uci.get("freifunk", "community", "essid"), + bssid = uci.get("freifunk", "community", "bssid"), + txpower = 13 + }) + end end) end |