From ee46a6c7121c2252a8c57f11d9e7719d2fbba342 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Wed, 4 Apr 2018 14:19:23 +0200 Subject: luci-app-travelmate: sync with travelmate 1.2.0 * remove needless 'automatic' and 'trigger' options plus small fixes Signed-off-by: Dirk Brenken --- applications/luci-app-travelmate/luasrc/controller/travelmate.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-travelmate/luasrc/controller') 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}) -- cgit v1.2.3