Skip to content
Snippets Groups Projects
Unverified Commit b45585a1 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Switch LAN and WAN port of Ubiquiti AirGateway

This makes the LAN port the PoE master, so the AirGateway can be used to
supply power to another node connected via mesh-on-LAN.

Fixes #608
parent f0b919e8
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ if platform.match('ar71xx', 'generic', { ...@@ -34,6 +34,7 @@ if platform.match('ar71xx', 'generic', {
'cpe510', 'cpe510',
'wbs210', 'wbs210',
'wbs510', 'wbs510',
'airgateway',
'nanostation-m', 'nanostation-m',
'nanostation-m-xw', 'nanostation-m-xw',
'unifi-outdoor-plus', 'unifi-outdoor-plus',
......
...@@ -8,10 +8,18 @@ if sysconfig.setup_ifname then ...@@ -8,10 +8,18 @@ if sysconfig.setup_ifname then
os.exit(0) os.exit(0)
end end
if if platform.match('ar71xx', 'generic', {
platform.match('ar71xx', 'generic', {'cpe210', 'cpe510', 'wbs210', 'wbs510', 'nanostation-m', 'nanostation-m-xw', 'unifi-outdoor-plus', 'uap-pro', 'unifiac-pro'}) or 'cpe210',
platform.match('ar71xx', 'mikrotik') 'cpe510',
then 'wbs210',
'wbs510',
'airgateway',
'nanostation-m',
'nanostation-m-xw',
'unifi-outdoor-plus',
'uap-pro',
'unifiac-pro'
}) or platform.match('ar71xx', 'mikrotik') 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment