From: Dirk Brenken Date: Sat, 2 Feb 2019 07:48:40 +0000 (+0100) Subject: luci-app-travelmate: small controller changes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F2499%2Fhead;p=project%2Fluci.git luci-app-travelmate: small controller changes - remove needless Turris Omnia logread workaround, due to changes in latest syslog-ng package Signed-off-by: Dirk Brenken --- diff --git a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua index 0c5890810e..b201abf14d 100644 --- a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua +++ b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua @@ -1,4 +1,4 @@ --- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) +-- Copyright 2017-2019 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.travelmate", package.seeall) @@ -56,14 +56,8 @@ function status_update() end function logread() - local content + local content = util.trim(util.exec("logread -e 'travelmate-'")) or "" - if nixio.fs.access("/var/log/messages") then - content = util.trim(util.exec("grep -F 'travelmate-' /var/log/messages")) - else - content = util.trim(util.exec("logread -e 'travelmate-'")) - end - if content == "" then content = "No travelmate related logs yet!" end