luci-app-banIP: small controller changes

- remove needless Turris Omnia logread workaround, due to changes in
latest syslog-ng package

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2019-02-02 08:56:39 +01:00
parent 68d3351d36
commit 2ba9325788

View file

@ -51,13 +51,7 @@ function status_update()
end
function log_view()
local content
if nixio.fs.access("/var/log/messages") then
content = util.trim(util.exec("grep -F 'banIP-' /var/log/messages"))
else
content = util.trim(util.exec("logread -e 'banIP-' 2>/dev/null"))
end
local content = util.trim(util.exec("logread -e 'banIP-' 2>/dev/null")) or ""
if content == "" then
content = "No banIP related logs yet!"