diff options
author | Dirk Brenken <dev@brenken.org> | 2019-08-29 12:02:04 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2019-08-29 14:16:12 +0200 |
commit | 916939933e6d934bfc277593d29f40ef3e2f63e7 (patch) | |
tree | 5c3b155b76cee9d3ff665618e2b4ddc4ae532e42 /applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua | |
parent | 2aab85814d0eead5f82ee1c5661f03667ce50b62 (diff) |
luci-app-travelmate: sync with 1.4.12
* option to add open uplinks to your wireless config,
e.g. hotel captive portals (disabled by default)
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua | 13 |
1 files changed, 9 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 429d4357d6..cc38bd97e1 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 @@ -71,19 +71,24 @@ o4 = s:option(Flag, "trm_proactive", translate("ProActive Uplink Switch"), o4.default = o4.enabled o4.rmempty = false -o5 = s:option(ListValue, "trm_iface", translate("Uplink / Trigger interface"), +o5 = s:option(Flag, "trm_autoadd", translate("Add Open Uplinks"), + translate("Automatically add open uplinks like hotel captive portals to your wireless config.")) +o5.default = o5.disabled +o5.rmempty = false + +o6 = s:option(ListValue, "trm_iface", translate("Uplink / Trigger interface"), translate("Name of the used uplink interface.")) if dump then local i, v for i, v in ipairs(dump.interface) do if v.interface ~= "loopback" and v.interface ~= "lan" then local device = v.l3_device or v.device or "-" - o5:value(v.interface, v.interface.. " (" ..device.. ")") + o6:value(v.interface, v.interface.. " (" ..device.. ")") end end end -o5.default = trmiface -o5.rmempty = false +o6.default = trmiface +o6.rmempty = false -- Runtime information |