luci-app-travelmate: sync with travelmate 0.9.6
* Turris omnia compability fixes * OpenWrt theme fixes Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
parent
2474cdd049
commit
c7b39ae08f
2 changed files with 16 additions and 10 deletions
applications/luci-app-travelmate/luasrc
|
@ -30,6 +30,12 @@ function index()
|
|||
end
|
||||
|
||||
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})
|
||||
end
|
||||
|
|
|
@ -31,10 +31,10 @@ This is free software, licensed under the Apache License, Version 2.0
|
|||
local iface = s.network or ""
|
||||
if iface == trmiface then
|
||||
local section = s['.name'] or ""
|
||||
local device = s.device or ""
|
||||
local ssid = s.ssid or ""
|
||||
local bssid = s.bssid or ""
|
||||
local encryption = s.encryption or ""
|
||||
local device = s.device or "-"
|
||||
local ssid = s.ssid or "-"
|
||||
local bssid = s.bssid or "-"
|
||||
local encryption = s.encryption or "-"
|
||||
local disabled = s.disabled or ""
|
||||
local style = "color:#000000"
|
||||
if disabled == "0" then
|
||||
|
|
Loading…
Reference in a new issue