summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-07-16 14:39:55 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-09-24 11:28:51 +0200
commit99ebb788cff5d22ce04c267d2818b562b68e8801 (patch)
tree332bb6a6c6b45a2ac8e2bdb6fc7fff8552d017ad /modules/luci-mod-network
parent89a4fdd1a8c899c901c75a769b40f8704bf798b3 (diff)
luci-mod-network: disable setup on new wifi-iface add
If we add a new wifi-iface to the config then the iface will start at once. But normaly we would configure the wireless security in the next step. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r--modules/luci-mod-network/luasrc/controller/admin/network.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-mod-network/luasrc/controller/admin/network.lua b/modules/luci-mod-network/luasrc/controller/admin/network.lua
index a587b7e51..a200f79b5 100644
--- a/modules/luci-mod-network/luasrc/controller/admin/network.lua
+++ b/modules/luci-mod-network/luasrc/controller/admin/network.lua
@@ -175,7 +175,8 @@ function wifi_add()
local net = dev:add_wifinet({
mode = "ap",
ssid = "OpenWrt",
- encryption = "none"
+ encryption = "none",
+ disabled = 1
})
ntm:save("wireless")