diff options
author | Dirk Brenken <dev@brenken.org> | 2019-02-02 08:56:39 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2019-02-02 08:56:39 +0100 |
commit | 2ba9325788f80cc803fd8af49bb492cc09725285 (patch) | |
tree | 0e92c2b3d7fc30eaf0e5d50fa351dff310961e9e /applications | |
parent | 68d3351d36752cd111ea7059505fc9dfc71d32fb (diff) |
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>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-banip/luasrc/controller/banip.lua | 8 |
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 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!" |