summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-07-31 12:40:43 +0300
committerGitHub <noreply@github.com>2017-07-31 12:40:43 +0300
commit0b11fdebf8a45ee858482896a96ec40232e32646 (patch)
treec45dce065e149068a5213a6d4d0b2181755ac384 /applications/luci-app-travelmate
parentf7a9c713e56a53a83bf789c7e0d1e9554261b3d3 (diff)
parent4142839e0d3196cf74fdeee80de5e01d84ffb861 (diff)
Merge pull request #1267 from dibdot/travelmate
luci-app-travelmate: bugfixes
Diffstat (limited to 'applications/luci-app-travelmate')
-rw-r--r--applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua2
-rw-r--r--applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm9
2 files changed, 7 insertions, 4 deletions
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
index aa508f5214..12cb72cbe5 100644
--- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
+++ b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
@@ -90,7 +90,7 @@ end
o3 = s:option(Value, "trm_iface", translate("Uplink / Trigger interface"),
translate("Name of the uplink interface that triggers travelmate processing in 'manual' mode."))
o3.datatype = "and(uciname,rangelength(3,15))"
-o3.default = "trm_wwan"
+o3.default = trmiface
o3.rmempty = false
o4 = s:option(Value, "trm_triggerdelay", translate("Trigger delay"),
diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm
index f1c6be1628..d8ca96607f 100644
--- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm
+++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm
@@ -14,7 +14,7 @@ This is free software, licensed under the Apache License, Version 2.0
<div class="cbi-map">
<h2 name="content"><%:Wireless Stations%></h2>
<div class="cbi-map-descr">
- <%:Provides an overview of all configured uplinks for the travelmate interface (%><%=trmiface%><%:). You can edit, delete or re-order existing uplinks or scan for a new one. The currently used uplink is emphasized in blue.%>
+ <%=translatef("Provides an overview of all configured uplinks for the travelmate interface (%s). You can edit, delete or re-order existing uplinks or scan for a new one. The currently used uplink is emphasized in blue.", trmiface)%>
</div>
<fieldset class="cbi-section">
@@ -26,8 +26,11 @@ This is free software, licensed under the Apache License, Version 2.0
<th class="cbi-section-table-cell" style="text-align:center" colspan="2"><%:Actions%></th>
</tr>
<%
- local pos = 1
- uci:foreach("wireless", "wifi-iface", function(s)
+ local pos = -1
+ uci:foreach("wireless", "wifi-device", function(s)
+ pos = pos + 1
+ end)
+ uci:foreach("wireless", "wifi-iface", function(s)
pos = pos + 1
local section = s['.name']
local device = s.device or ""