Merge pull request #1468 from dibdot/travelmate

luci-app-travelmate: sync with travelmate 0.9.6
This commit is contained in:
Hannu Nyman 2017-12-09 09:39:47 +02:00 committed by GitHub
commit 8e6b1a6d86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 10 deletions

View file

@ -30,6 +30,12 @@ function index()
end end
function logread() function logread()
local logfile = util.trim(util.exec("logread -e 'travelmate'")) local logfile
if nixio.fs.access("/var/log/messages") then
logfile = util.trim(util.exec("cat /var/log/messages | grep 'travelmate'"))
else
logfile = util.trim(util.exec("logread -e 'travelmate'"))
end
templ.render("travelmate/logread", {title = i18n.translate("Travelmate Logfile"), content = logfile}) templ.render("travelmate/logread", {title = i18n.translate("Travelmate Logfile"), content = logfile})
end end

View file

@ -31,10 +31,10 @@ This is free software, licensed under the Apache License, Version 2.0
local iface = s.network or "" local iface = s.network or ""
if iface == trmiface then if iface == trmiface then
local section = s['.name'] or "" local section = s['.name'] or ""
local device = s.device or "" local device = s.device or "-"
local ssid = s.ssid or "" local ssid = s.ssid or "-"
local bssid = s.bssid or "" local bssid = s.bssid or "-"
local encryption = s.encryption or "" local encryption = s.encryption or "-"
local disabled = s.disabled or "" local disabled = s.disabled or ""
local style = "color:#000000" local style = "color:#000000"
if disabled == "0" then if disabled == "0" then