projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37caa67
)
* Fixed a bug in Luci-Splash
author
Steven Barth
<steven@midlink.org>
Fri, 6 Jun 2008 21:49:17 +0000
(21:49 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 6 Jun 2008 21:49:17 +0000
(21:49 +0000)
applications/luci-splash/root/usr/sbin/luci-splash
patch
|
blob
|
history
diff --git
a/applications/luci-splash/root/usr/sbin/luci-splash
b/applications/luci-splash/root/usr/sbin/luci-splash
index fc3a0c8da50933443cf56b192a44c466d778843c..72456c01e61509ab36e9672aa3e6f031b740c6f7 100644
(file)
--- a/
applications/luci-splash/root/usr/sbin/luci-splash
+++ b/
applications/luci-splash/root/usr/sbin/luci-splash
@@
-73,15
+73,20
@@
end
-- Remove a lease from state and invoke remove_rule
function remove_lease(mac)
mac = mac:lower()
+ local del = {}
uci.foreach("luci_splash", "lease",
function (section)
if section.mac:lower() == mac then
- remove_rule(mac)
- uci.delete("luci_splash", section[".name"])
+ table.insert(del, section[".name"])
end
end)
+ for i,j in ipairs(del) do
+ remove_rule(j)
+ uci.delete("luci_splash", j)
+ end
+
uci.save()
end