diff options
author | Dirk Brenken <dev@brenken.org> | 2018-04-04 14:19:23 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2018-04-04 14:19:23 +0200 |
commit | ee46a6c7121c2252a8c57f11d9e7719d2fbba342 (patch) | |
tree | 16b6ecaddd7e5a6013040ad4809821ada7ace6cf /applications/luci-app-travelmate/luasrc/controller | |
parent | 189fe1e389fe379528272443f25eb9b2ce7cf4d5 (diff) |
luci-app-travelmate: sync with travelmate 1.2.0
* remove needless 'automatic' and 'trigger' options plus small fixes
Signed-off-by: Dirk Brenken <dev@brenken.org>
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}) |