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:
parent
68d3351d36
commit
2ba9325788
1 changed files with 1 additions and 7 deletions
|
@ -51,13 +51,7 @@ function status_update()
|
||||||
end
|
end
|
||||||
|
|
||||||
function log_view()
|
function log_view()
|
||||||
local content
|
local content = util.trim(util.exec("logread -e 'banIP-' 2>/dev/null")) or ""
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
if content == "" then
|
if content == "" then
|
||||||
content = "No banIP related logs yet!"
|
content = "No banIP related logs yet!"
|
||||||
|
|
Loading…
Reference in a new issue