luci-app-travelmate: fix function calls
* fix function calls that have an implicit extra parameter self, pre-requisite for PR #1681 Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
parent
ff7bdab68a
commit
06ba63ad59
2 changed files with 4 additions and 4 deletions
|
@ -8,9 +8,9 @@ local util = require("luci.util")
|
|||
local nw = require("luci.model.network").init()
|
||||
local fw = require("luci.model.firewall").init()
|
||||
local dump = util.ubus("network.interface", "dump", {})
|
||||
local trmiface = uci.get("travelmate", "global", "trm_iface") or "trm_wwan"
|
||||
local trminput = uci.get("travelmate", "global", "trm_rtfile") or "/tmp/trm_runtime.json"
|
||||
local uplink = uci.get("network", trmiface) or ""
|
||||
local trmiface = uci:get("travelmate", "global", "trm_iface") or "trm_wwan"
|
||||
local trminput = uci:get("travelmate", "global", "trm_rtfile") or "/tmp/trm_runtime.json"
|
||||
local uplink = uci:get("network", trmiface) or ""
|
||||
local parse = json.parse(fs.readfile(trminput) or "")
|
||||
|
||||
m = Map("travelmate", translate("Travelmate"),
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
local fs = require("nixio.fs")
|
||||
local uci = require("luci.model.uci").cursor()
|
||||
local http = require("luci.http")
|
||||
local trmiface = uci.get("travelmate", "global", "trm_iface") or "trm_wwan"
|
||||
local trmiface = uci:get("travelmate", "global", "trm_iface") or "trm_wwan"
|
||||
local encr_psk = {"psk", "psk2", "psk-mixed"}
|
||||
local encr_wpa = {"wpa", "wpa2", "wpa-mixed"}
|
||||
|
||||
|
|
Loading…
Reference in a new issue