Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
7351fb5d
Unverified
Commit
7351fb5d
authored
7 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-web-network: fix reading "legacy" mode settings from UCI
Fixes #1269
parent
87c741b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-web-network/luasrc/lib/gluon/web/model/admin/network.lua
+2
-2
2 additions, 2 deletions
...-web-network/luasrc/lib/gluon/web/model/admin/network.lua
with
2 additions
and
2 deletions
package/gluon-web-network/luasrc/lib/gluon/web/model/admin/network.lua
+
2
−
2
View file @
7351fb5d
...
...
@@ -84,7 +84,7 @@ function mesh_wan:write(data)
end
local
mesh_wan_legacy
=
s
:
option
(
Flag
,
"mesh_wan_legacy"
,
translate
(
"Use legacy mode for WAN meshing"
))
mesh_wan_legacy
.
default
=
mesh_wan
.
default
and
uci
:
get_bool
(
"network"
,
"mesh_wan
_
legacy"
,
"auto"
)
mesh_wan_legacy
.
default
=
mesh_wan
.
default
and
uci
:
get_bool
(
"network"
,
"mesh_wan
"
,
"
legacy"
)
mesh_wan_legacy
:
depends
(
mesh_wan
,
true
)
function
mesh_wan_legacy
:
write
(
data
)
...
...
@@ -114,7 +114,7 @@ if sysconfig.lan_ifname then
end
local
mesh_lan_legacy
=
s
:
option
(
Flag
,
"mesh_lan_legacy"
,
translate
(
"Use legacy mode for LAN meshing"
))
mesh_lan_legacy
.
default
=
mesh_lan
.
default
and
uci
:
get_bool
(
"network"
,
"mesh_lan
_
legacy"
,
"auto"
)
mesh_lan_legacy
.
default
=
mesh_lan
.
default
and
uci
:
get_bool
(
"network"
,
"mesh_lan
"
,
"
legacy"
)
mesh_lan_legacy
:
depends
(
mesh_lan
,
true
)
function
mesh_lan_legacy
:
write
(
data
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment