ramips-mt7621: add Ubiquiti UniFi Switch Flex
This commit is contained in:
parent
115aad0931
commit
489d87c18e
@ -355,6 +355,7 @@ ramips-mt7621
|
|||||||
- EdgeRouter X
|
- EdgeRouter X
|
||||||
- EdgeRouter X-SFP
|
- EdgeRouter X-SFP
|
||||||
- UniFi 6 Lite
|
- UniFi 6 Lite
|
||||||
|
- UniFi Switch Flex
|
||||||
|
|
||||||
* ZBT
|
* ZBT
|
||||||
|
|
||||||
|
@ -67,6 +67,10 @@ elseif platform.match('ramips', 'mt7621', {
|
|||||||
'netgear,wac104',
|
'netgear,wac104',
|
||||||
}) then
|
}) then
|
||||||
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
|
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
|
||||||
|
elseif platform.match('ramips', 'mt7621', {
|
||||||
|
'ubnt,usw-flex',
|
||||||
|
}) then
|
||||||
|
lan_ifname, wan_ifname = 'lan2 lan3 lan4 lan5', 'lan1'
|
||||||
end
|
end
|
||||||
|
|
||||||
if wan_ifname and lan_ifname then
|
if wan_ifname and lan_ifname then
|
||||||
|
@ -59,6 +59,10 @@ function M.is_outdoor_device()
|
|||||||
'mikrotik,sxtsq-5-ac',
|
'mikrotik,sxtsq-5-ac',
|
||||||
}) then
|
}) then
|
||||||
return true
|
return true
|
||||||
|
elseif M.match('ramips', 'mt7621', {
|
||||||
|
'ubnt,usw-flex',
|
||||||
|
}) then
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
@ -109,3 +109,8 @@ device('ubiquiti-edgerouter-x-sfp', 'ubnt_edgerouter-x-sfp', {
|
|||||||
'ubnt-erx-sfp',
|
'ubnt-erx-sfp',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
device('ubiquiti-unifi-switch-flex', 'ubnt_usw-flex', {
|
||||||
|
factory = false,
|
||||||
|
packages = {'-hostapd-mini', 'poemgr'},
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user