luci-0.9: merge r6346
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 28 Oct 2010 18:22:14 +0000 (18:22 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 28 Oct 2010 18:22:14 +0000 (18:22 +0000)
applications/luci-splash/root/etc/init.d/luci_splash
applications/luci-splash/root/usr/sbin/luci-splash

index d6f0a33766d769d2983aa103285958c72e69c65b..5206d448cb6dfe0920886b069449ca05f0efaade 100755 (executable)
@@ -179,6 +179,7 @@ start() {
 
        ### Load required modules
        [ "$LIMIT_UP" -gt 0 -a "$LIMIT_DOWN" -gt 0 ] && {
+               silent insmod act_police
                silent insmod cls_fw
                silent insmod cls_u32
                silent insmod sch_htb
index da3b58dbb1e6b75b6d850b64ea1a4b39a85ad50f..b8b70145871ebcbc66b5a48441a249b9d92d2e4e 100755 (executable)
@@ -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",
@@ -426,11 +426,11 @@ function list()
        ) do
                if (s[".type"] == "whitelist" or s[".type"] == "blacklist") and s.mac then
                        local mac = s.mac:lower()
-                       local arp = arpcache[mac]:lower()
+                       local arp = arpcache[mac]
                        print(string.format(
                                "%-17s  %-15s  %-9s  %4s  %-7s  %9s  %9s",
-                               mac, arp and arp[2] or "?", s[".type"], "- ",
-                               arp and arp[1] or "?", "-", "-"
+                               mac, arp and arp[2] or "?", s[".type"],
+                               "- ", arp and arp[1] or "?", "-", "-"
                        ))
                end
        end