Developing lightweight computation at the DSG edge

Commit 603fa39e authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

sed -i -e 's/\s\+$//g' packages/qmp-small-node/files/usr/lib/lua/luci/model/cbi/qmp/wizard.lua

parent ebb51319
......@@ -110,7 +110,7 @@ function netmode.write(self, section, value)
uciout:set("qmp","networks","olsr6_ipv4_prefix24","10.201")
end
local i,v,devmode,devname
local lan_devices = ""
local wan_devices = ""
......@@ -126,13 +126,13 @@ function netmode.write(self, section, value)
wan_devices = wan_devices..devname.." "
elseif devmode == "Mesh" then
mesh_devices = mesh_devices..devname.." "
end
end
end
for i,v in ipairs(nodedevs_wifi) do
devmode = v[2]:formvalue(section)
devname = v[1]
if devmode == "AP" then
lan_devices = lan_devices..devname.." "
elseif devmode == "Mesh" then
......@@ -147,7 +147,7 @@ function netmode.write(self, section, value)
end
uciout:foreach("qmp","wireless",setmode)
end
uciout:set("qmp","interfaces","lan_devices",lan_devices)
uciout:set("qmp","interfaces","wan_devices",wan_devices)
uciout:set("qmp","interfaces","mesh_devices",mesh_devices)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment