From 7cc3ebddd7ea32ae14167389535cbc7d1df95d8e Mon Sep 17 00:00:00 2001 From: Felix Baumann Date: Tue, 5 Nov 2024 19:42:34 +0100 Subject: [PATCH] ipq806x-generic: add Ubiquiti UniFi AC HD (#3361) --- docs/user/supported_devices.rst | 4 ++++ package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces | 4 ++++ targets/ipq806x-generic | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index 06acf78183..6808c0e0f2 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -267,6 +267,10 @@ ipq806x-generic - R7800 +* Ubiquiti + + - UniFi AC HD + lantiq-xrx200 ------------- diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces index 5e5243a0a1..a365349287 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces @@ -67,6 +67,10 @@ elseif platform.match('ipq40xx', 'generic', { 'avm,fritzbox-7530', }) then lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1' +elseif platform.match('ipq806x', 'generic', { + 'ubnt,unifi-ac-hd', +}) then + lan_ifname, wan_ifname = 'eth1', 'eth0' elseif platform.match('ramips', 'mt7621', { 'netgear,wac104', }) then diff --git a/targets/ipq806x-generic b/targets/ipq806x-generic index 1b3263fc3e..0abf67a750 100644 --- a/targets/ipq806x-generic +++ b/targets/ipq806x-generic @@ -26,3 +26,9 @@ device('netgear-nighthawk-x4s-r7800', 'netgear_r7800', { factory_ext = '.img', packages = QCA9984_PACKAGES, }) + +-- Ubiquiti +device('ubiquiti-unifi-ac-hd', 'ubnt_unifi-ac-hd', { + packages = QCA9984_PACKAGES, + factory = false, +})