From 9fb0f37769d7d7116995fa3769c1097e5a1bbfef Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 31 Oct 2008 10:03:48 +0000 Subject: [PATCH] Wifi devices should not be deletable (UVL override) --- modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 +- modules/admin-mini/luasrc/model/cbi/mini/wifi.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 c095cc529..b61db62ac 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 31242b74b..7327b9e1d 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" -- 2.25.1