1 -- Licensed to the public under the Apache License 2.0.
3 m = Map("travelmate", translate("Travelmate"),
4 translate("Configuration of the Travelmate package to enable travel router functionality. ") .. [[</p>]] ..
5 translate("Brief advice: Create a wwan interface, configure it to use dhcp and " ..
6 "add it to the wan zone in firewall. Create the wifi interfaces to be used ('client' mode, " ..
7 "assigned to wwan network, left as disabled). Travelmate will try " ..
8 "to connect to the known wifi client interfaces in the defined order. ") ..
9 [[<a href="https://github.com/openwrt/packages/tree/master/net/travelmate/files/README.md" target="_blank">]]
10 .. translate("Link to detailed advice")
15 s = m:section(NamedSection, "global", "travelmate", translate("Global options"))
17 o = s:option(Flag, "trm_enabled", translate("Enable Travelmate"))
21 o = s:option(Value, "trm_maxwait", translate("Max. timeout in seconds for wlan interface reload"),
22 translate("Default 20, range 10-60"))
25 o.datatype = "range(10,60)"
27 o = s:option(Value, "trm_maxretry", translate("Max. number of connection retries to an uplink"),
28 translate("Default 3, range 1-10"))
31 o.datatype = "range(1,10)"
35 e = m:section(NamedSection, "global", "travelmate", translate("Extra options"))
37 a = e:option(Flag, "trm_debug", translate("Debug logging"))
39 a.default = a.disabled
41 a = e:option(Value, "trm_iface", translate("Restrict reload trigger to certain interface(s)"),
42 translate("Space separated list of wwan interfaces that trigger reload action. To disable reload trigger set it to 'false'. Default: empty"))
45 a.datatype = "uciname"
47 a = e:option(Flag, "trm_iw", translate("Use iw for scanning"),
48 translate("Disable this if you want to use iwinfo instead of iw"))