From 2ba9325788f80cc803fd8af49bb492cc09725285 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sat, 2 Feb 2019 08:56:39 +0100 Subject: 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 --- applications/luci-app-banip/luasrc/controller/banip.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'applications/luci-app-banip/luasrc/controller') diff --git a/applications/luci-app-banip/luasrc/controller/banip.lua b/applications/luci-app-banip/luasrc/controller/banip.lua index 3d75bec4d0..42328d7ea4 100644 --- a/applications/luci-app-banip/luasrc/controller/banip.lua +++ b/applications/luci-app-banip/luasrc/controller/banip.lua @@ -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!" -- cgit v1.2.3