Wifi devices should not be deletable (UVL override)
authorSteven Barth <steven@midlink.org>
Fri, 31 Oct 2008 10:03:48 +0000 (10:03 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 31 Oct 2008 10:03:48 +0000 (10:03 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua

index c095cc5295c15f030428f21799c1cba49bbed11d..b61db62ac49a8949c116136caf27b04716cf7c4f 100644 (file)
@@ -17,7 +17,7 @@ arg[1] = arg[1] or ""
 m = Map("wireless", translate("networks"), translate("a_w_networks1"))
 
 s = m:section(NamedSection, arg[1], "wifi-device", translate("device") .. " " .. arg[1])
---s.addremove = true
+s.addremove = false
 
 back = s:option(DummyValue, "_overview", translate("overview"))
 back.value = ""
index 31242b74bc473fceb641c86aed4cfac9afb8870c..7327b9e1db6378e175eb418084a720ee6d793d2d 100644 (file)
@@ -127,6 +127,7 @@ end
 -- Config Section --
 
 s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices"))
+s.addremove = false
 
 en = s:option(Flag, "disabled", translate("enable"))
 en.enabled = "0"