summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc/controller
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-04-05 14:43:53 +0200
committerGitHub <noreply@github.com>2018-04-05 14:43:53 +0200
commit9dcf73b323fa97534a931e3acfbab8b03ce3961f (patch)
tree7a9640e084f5a6569afbaaf64ce9fa448186e046 /applications/luci-app-travelmate/luasrc/controller
parentac2210376dd294f7a69589de79ea5f4845787db5 (diff)
parentee46a6c7121c2252a8c57f11d9e7719d2fbba342 (diff)
Merge pull request #1718 from dibdot/travelmate
luci-app-travelmate: sync with travelmate 1.2.0
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/controller')
-rw-r--r--applications/luci-app-travelmate/luasrc/controller/travelmate.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua
index d99c4cbefd..b2b877347c 100644
--- a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua
+++ b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua
@@ -30,11 +30,11 @@ function index()
end
function logread()
- local logfile
+ local logfile = ""
if nixio.fs.access("/var/log/messages") then
logfile = util.trim(util.exec("grep -F 'travelmate-' /var/log/messages"))
- else
+ elseif nixio.fs.access("/sbin/logread") then
logfile = util.trim(util.exec("logread -e 'travelmate-'"))
end
templ.render("travelmate/logread", {title = i18n.translate("Travelmate Logfile"), content = logfile})