diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2018-01-03 10:59:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 10:59:40 +0200 |
commit | b121f958621efd5d81451e2de3e7d35a828645bc (patch) | |
tree | 07dfbc66be4063036f66582fa1bca780c8011c46 /applications/luci-app-travelmate/luasrc/controller/travelmate.lua | |
parent | dbb694c699f80f387c61d531cb3e8de2608edbec (diff) | |
parent | a4e05483b1c4cb9973d78e3a8312023ee0be5262 (diff) |
Merge pull request #1495 from dibdot/travelmate
luci-app-travelmate: sync with 1.0.1
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/controller/travelmate.lua')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/controller/travelmate.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua index efbe619a43..ef79c7406b 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 Dirk Brenken (dev@brenken.org) +-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.travelmate", package.seeall) @@ -33,9 +33,9 @@ function logread() local logfile if nixio.fs.access("/var/log/messages") then - logfile = util.trim(util.exec("cat /var/log/messages | grep 'travelmate'")) + logfile = util.trim(util.exec("cat /var/log/messages | grep 'travelmate-'")) else - logfile = util.trim(util.exec("logread -e 'travelmate'")) + logfile = util.trim(util.exec("logread -e 'travelmate-'")) end templ.render("travelmate/logread", {title = i18n.translate("Travelmate Logfile"), content = logfile}) end |