summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--applications/luci-app-banip/luasrc/controller/banip.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/applications/luci-app-banip/luasrc/controller/banip.lua b/applications/luci-app-banip/luasrc/controller/banip.lua
index 3d75bec4d..42328d7ea 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!"