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
cab23b18
Unverified
Commit
cab23b18
authored
8 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
ar71xx-generic: switch default WAN/LAN assignment on Ubiquiti UAP Pro
Fixes #764
parent
087112a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-core/files/lib/gluon/upgrade/020-interfaces
+1
-1
1 addition, 1 deletion
package/gluon-core/files/lib/gluon/upgrade/020-interfaces
package/gluon-setup-mode/files/lib/gluon/upgrade/320-setup-ifname
+1
-1
1 addition, 1 deletion
...gluon-setup-mode/files/lib/gluon/upgrade/320-setup-ifname
with
2 additions
and
2 deletions
package/gluon-core/files/lib/gluon/upgrade/020-interfaces
+
1
−
1
View file @
cab23b18
...
@@ -16,7 +16,7 @@ if not (sysconfig.lan_ifname or sysconfig.wan_ifname) then
...
@@ -16,7 +16,7 @@ if not (sysconfig.lan_ifname or sysconfig.wan_ifname) then
local
lan_ifname
=
uci
:
get
(
'network'
,
'lan'
,
'ifname'
)
local
lan_ifname
=
uci
:
get
(
'network'
,
'lan'
,
'ifname'
)
local
wan_ifname
=
uci
:
get
(
'network'
,
'wan'
,
'ifname'
)
local
wan_ifname
=
uci
:
get
(
'network'
,
'wan'
,
'ifname'
)
if
platform
.
match
(
'ar71xx'
,
'generic'
,
{
'cpe510'
,
'nanostation-m'
,
'nanostation-m-xw'
,
'unifi-outdoor-plus'
,
'unifiac-pro'
})
then
if
platform
.
match
(
'ar71xx'
,
'generic'
,
{
'cpe510'
,
'nanostation-m'
,
'nanostation-m-xw'
,
'unifi-outdoor-plus'
,
'uap-pro'
,
'unifiac-pro'
})
then
lan_ifname
,
wan_ifname
=
wan_ifname
,
lan_ifname
lan_ifname
,
wan_ifname
=
wan_ifname
,
lan_ifname
end
end
...
...
This diff is collapsed.
Click to expand it.
package/gluon-setup-mode/files/lib/gluon/upgrade/320-setup-ifname
+
1
−
1
View file @
cab23b18
...
@@ -8,7 +8,7 @@ if sysconfig.setup_ifname then
...
@@ -8,7 +8,7 @@ if sysconfig.setup_ifname then
os.exit
(
0
)
os.exit
(
0
)
end
end
if
platform
.
match
(
'ar71xx'
,
'generic'
,
{
'cpe510'
,
'nanostation-m'
,
'nanostation-m-xw'
,
'unifi-outdoor-plus'
,
'unifiac-pro'
})
then
if
platform
.
match
(
'ar71xx'
,
'generic'
,
{
'cpe510'
,
'nanostation-m'
,
'nanostation-m-xw'
,
'unifi-outdoor-plus'
,
'uap-pro'
,
'unifiac-pro'
})
then
sysconfig
.
setup_ifname
=
sysconfig
.
config_ifname
or
sysconfig
.
wan_ifname
or
sysconfig
.
lan_ifname
sysconfig
.
setup_ifname
=
sysconfig
.
config_ifname
or
sysconfig
.
wan_ifname
or
sysconfig
.
lan_ifname
else
else
sysconfig
.
setup_ifname
=
sysconfig
.
config_ifname
or
sysconfig
.
lan_ifname
or
sysconfig
.
wan_ifname
sysconfig
.
setup_ifname
=
sysconfig
.
config_ifname
or
sysconfig
.
lan_ifname
or
sysconfig
.
wan_ifname
...
...
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