Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
603fa39e
Commit
603fa39e
authored
Jun 16, 2012
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/usr/lib/lua/luci/model/cbi/qmp/wizard.lua
View file @
603fa39e
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment