summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2013-09-28 12:06:13 +0000
committerManuel Munz <freifunk@somakoma.de>2013-09-28 12:06:13 +0000
commitcc2c364198ab0e5ecf1e5c773be2f2e9b1b593ec (patch)
tree1198d28c0b4f0ab716ef30c0d2589d9eb3d5fbbc
parent15956b81e26b4725f25a0f99cf3d4591c0007546 (diff)
applications/luci-splash: Show black-/whitelisted clients in luci-splash list output again
-rwxr-xr-xapplications/luci-splash/root/usr/sbin/luci-splash7
1 files changed, 4 insertions, 3 deletions
diff --git a/applications/luci-splash/root/usr/sbin/luci-splash b/applications/luci-splash/root/usr/sbin/luci-splash
index a34eecae9a..35b02cef68 100755
--- a/applications/luci-splash/root/usr/sbin/luci-splash
+++ b/applications/luci-splash/root/usr/sbin/luci-splash
@@ -505,7 +505,7 @@ function sync()
end
end
end
-
+
uci:save("luci_splash_leases")
-- Get the mac addresses of current leases
@@ -557,6 +557,7 @@ function list()
-- Print listings
local leases = uci:get_all("luci_splash_leases")
+ local blackwhitelist = uci:get_all("luci_splash")
print(string.format(
"%-17s %-15s %-9s %-4s %-7s %20s",
@@ -579,8 +580,8 @@ function list()
end
-- Whitelist, Blacklist
- for _, s in utl.spairs(leases,
- function(a,b) return leases[a][".type"] > leases[b][".type"] end
+ for _, s in utl.spairs(blackwhitelist,
+ function(a,b) return blackwhitelist[a][".type"] > blackwhitelist[b][".type"] end
) do
if (s[".type"] == "whitelist" or s[".type"] == "blacklist") and s.mac then
local mac = s.mac:lower()