summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc/controller/travelmate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/controller/travelmate.lua')
-rw-r--r--applications/luci-app-travelmate/luasrc/controller/travelmate.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua
index ef79c7406b..0f7583497f 100644
--- a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua
+++ b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua
@@ -33,7 +33,7 @@ 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("grep -F 'travelmate-' /var/log/messages"))
else
logfile = util.trim(util.exec("logread -e 'travelmate-'"))
end