Merge pull request #1685 from dibdot/travelmate
luci-app-travelmate: fix function calls
This commit is contained in:
commit
44132150fc
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