projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
protocols/core: fix bad .write() invocation in luci.tools.proto
[project/luci.git]
/
protocols
/
core
/
luasrc
/
tools
/
proto.lua
diff --git
a/protocols/core/luasrc/tools/proto.lua
b/protocols/core/luasrc/tools/proto.lua
index
020589f
..
4df0269
100644
(file)
--- 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)
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", ...)
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)
end
function o.remove(self, section)
- self:write(se
lf, se
ction, nil)
+ self:write(section, nil)
end
end
end
end