diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-07-16 14:39:55 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2018-09-24 11:28:51 +0200 |
commit | 99ebb788cff5d22ce04c267d2818b562b68e8801 (patch) | |
tree | 332bb6a6c6b45a2ac8e2bdb6fc7fff8552d017ad /modules | |
parent | 89a4fdd1a8c899c901c75a769b40f8704bf798b3 (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')
-rw-r--r-- | modules/luci-mod-network/luasrc/controller/admin/network.lua | 3 |
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") |