summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-28 18:20:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-28 18:20:15 +0000
commit6fa65fa9ec7a85a4fda885b385dc988cfb258dc2 (patch)
tree0da3ef1ac40ec50dcf9cfd0930430cd10cacd6d2 /applications/luci-splash/root/usr
parent21de97b23523aa365c929ce72a0fbeee7ba7b333 (diff)
applications/luci-splash: add missing insmod for act_police, fix a crash in cli util
Diffstat (limited to 'applications/luci-splash/root/usr')
-rwxr-xr-xapplications/luci-splash/root/usr/sbin/luci-splash8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-splash/root/usr/sbin/luci-splash b/applications/luci-splash/root/usr/sbin/luci-splash
index 62c2ac635..b8b701458 100755
--- a/applications/luci-splash/root/usr/sbin/luci-splash
+++ b/applications/luci-splash/root/usr/sbin/luci-splash
@@ -380,7 +380,7 @@ function list()
-- Get current arp cache
local arpcache = { }
for _, entry in ipairs(net.arptable()) do
- arpcache[entry["HW address"]:lower()] = { entry["Device"], entry["IP address"] }
+ arpcache[entry["HW address"]:lower()] = { entry["Device"]:lower(), entry["IP address"]:lower() }
end
-- Find traffic usage
@@ -410,7 +410,7 @@ function list()
if s[".type"] == "lease" and s.mac then
local ti, to = traffic(s)
local mac = s.mac:lower()
- local arp = arpcache[mac]:lower()
+ local arp = arpcache[mac]
print(string.format(
"%-17s %-15s %-9s %3dm %-7s %7dKB %7dKB",
mac, s.ipaddr, "leased",
@@ -429,8 +429,8 @@ function list()
local arp = arpcache[mac]
print(string.format(
"%-17s %-15s %-9s %4s %-7s %9s %9s",
- mac, arp and arp[2]:lower() or "?", s[".type"],
- "- ", arp and arp[1]:lower() or "?", "-", "-"
+ mac, arp and arp[2] or "?", s[".type"],
+ "- ", arp and arp[1] or "?", "-", "-"
))
end
end