summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-10-31 10:03:27 +0000
committerSteven Barth <steven@midlink.org>2008-10-31 10:03:27 +0000
commit7b99529d954a19f2b5003d2c14ae2e7a6a30d5cf (patch)
tree9af6f1114ba289d3da51a425dacc102d83c4ab9c
parent803cbec182daaa76a91c6fb76682cfb1f9824e38 (diff)
Wifi devices should not be deletable (UVL override)
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua2
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/wifi.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
index c095cc5295..b61db62ac4 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -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 = ""
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
index 31242b74bc..7327b9e1db 100644
--- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
+++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
@@ -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"