summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-26 10:19:21 +0000
committerSteven Barth <steven@midlink.org>2008-07-26 10:19:21 +0000
commitfe1bbe8ce7190d874069e3f9605bf4892e6b2bdf (patch)
tree3c685c12ffa71d7f3c1099e6c169d87c4f7b639c /modules
parent81cf9b02065714ad6976dc6466a3b84ffa0f06c7 (diff)
modules/admin-mini: Fixed wifi client mode again
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/wifi.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
index 4e1796475..30766a47c 100644
--- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
+++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
@@ -62,7 +62,10 @@ function mode.write(self, section, value)
luci.model.uci.set("network", "wan", "ifname", " ")
end
- luci.model.uci.set("network", "wan", "_ifname", luci.model.uci.get("network", "wan", "ifname") or " ")
+ local oldif = luci.model.uci.get("network", "wan", "ifname")
+ if oldif and oldif ~= " " then
+ luci.model.uci.set("network", "wan", "_ifname", oldif)
+ end
luci.model.uci.set("network", "wan", "ifname", " ")
luci.model.uci.save("network")
luci.model.uci.unload("network")