Revert hAP AC Lite xlink support (#1106)

This commit is contained in:
Tim Wilkinson 2024-03-01 15:23:15 -08:00 committed by GitHub
parent 6f30ab1cc5
commit e8abbb5489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
local board = aredn.hardware.get_board_type()
if board == "mikrotik,routerboard-952ui-5ac2nd" or board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" or board == "qemu" or board == "glinet,gl-b1300" or board == "vmware" then
if board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" or board == "qemu" or board == "glinet,gl-b1300" or board == "vmware" then
return { href = "advancednetwork", display = "Advanced Network" }
end

View File

@ -542,7 +542,7 @@ end
function supportsVLANChange()
-- If we support advanced networking, we dont provide this option here
local board = aredn.hardware.get_board_type()
if board == "mikrotik,routerboard-952ui-5ac2nd" or board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" then
if board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" then
return false
end
local stat = nixio.fs.stat("/etc/aredn_include/swconfig")

View File

@ -58,7 +58,6 @@ local function default_n_port_layout(board_type)
return { ports = ports }
end
local layouts = {
["mikrotik,routerboard-952ui-5ac2nd"] = default_5_port_layout,
["mikrotik,hap-ac2"] = default_5_port_layout,
["mikrotik,hap-ac3"] = default_5_port_layout,
["glinet,gl-b1300"] = default_3_port_layout,
@ -127,7 +126,6 @@ local default_1_port_config = {
}
}
local default_configs = {
["mikrotik,routerboard-952ui-5ac2nd"] = default_5_port_config,
["mikrotik,hap-ac2"] = default_5_port_config,
["mikrotik,hap-ac3"] = default_5_port_config,
["glinet,gl-b1300"] = default_3_port_config,