X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=protocols%2Fcore%2Fluasrc%2Ftools%2Fproto.lua;h=4df02696b0a44c541ed1528e5017fb69aba4463f;hp=020589f8b16092c5c01db28930d2af5d91e83f8e;hb=adedd765d4919c753017a1292d3dd1d522fe745f;hpb=bde145be541e7ba1ad9ed103f9dd82666295cacb;ds=sidebyside diff --git a/protocols/core/luasrc/tools/proto.lua b/protocols/core/luasrc/tools/proto.lua index 020589f8b..4df02696b 100644 --- a/protocols/core/luasrc/tools/proto.lua +++ b/protocols/core/luasrc/tools/proto.lua @@ -13,9 +13,6 @@ You may obtain a copy of the License at module("luci.tools.proto", package.seeall) -local uci = require "luci.model.uci".cursor() -local net = require "luci.model.network" - function opt_macaddr(s, ifc, ...) local v = luci.cbi.Value local o = s:taboption("advanced", v, "macaddr", ...) @@ -44,6 +41,6 @@ function opt_macaddr(s, ifc, ...) end function o.remove(self, section) - self:write(self, section, nil) + self:write(section, nil) end end