diff options
author | Dirk Brenken <dev@brenken.org> | 2018-04-05 14:43:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 14:43:53 +0200 |
commit | 9dcf73b323fa97534a931e3acfbab8b03ce3961f (patch) | |
tree | 7a9640e084f5a6569afbaaf64ce9fa448186e046 /applications/luci-app-travelmate/luasrc/controller | |
parent | ac2210376dd294f7a69589de79ea5f4845787db5 (diff) | |
parent | ee46a6c7121c2252a8c57f11d9e7719d2fbba342 (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.lua | 4 |
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}) |