VMWare support (#1024)

This commit is contained in:
Tim Wilkinson 2023-12-16 21:32:25 -08:00 committed by GitHub
parent 9046357955
commit abd0f8075a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -1175,5 +1175,8 @@
},
"qemu standard pc (i440fx + piix, 1996)": {
"name": "QEMU PC"
},
"vmware, inc. vmware virtual platform": {
"name": "VMware PC"
}
}

View File

@ -1,4 +1,4 @@
local board = aredn.hardware.get_board_type()
if board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" or board == "qemu-standard-pc-i440fx-piix-1996" or board == "glinet,gl-b1300" then
if board == "mikrotik,hap-ac2" or board == "mikrotik,hap-ac3" or board == "qemu-standard-pc-i440fx-piix-1996" or board == "glinet,gl-b1300" or board == "VMware, Inc. VMware Virtual Platform" then
return { href = "advancednetwork", display = "Advanced Network" }
end

View File

@ -284,7 +284,7 @@ if parms.button_refresh_fw then
if info then
for _, profile in ipairs(info.profiles)
do
if profile.id == board_type or (board_type == "qemu-standard-pc-i440fx-piix-1996" and profile.id == "generic" and profile.target == "x86/64") then
if profile.id == board_type or ((board_type == "qemu-standard-pc-i440fx-piix-1996" or board_type == "VMware, Inc. VMware Virtual Platform") and profile.id == "generic" and profile.target == "x86/64") then
firmware_versions[ver] = {
overview = config_serverpath .. data .. "/" .. profile.target .. "/" .. profile.id .. ".json",
target = info.image_url:gsub("{target}", profile.target)

View File

@ -51,7 +51,8 @@ local default_1_port_layout = { ports = { [1] = "eth0" } }
local layouts = {
["mikrotik,hap-ac2"] = default_5_port_layout,
["mikrotik,hap-ac3"] = default_5_port_layout,
["qemu-standard-pc-i440fx-piix-1996"] = default_1_port_layout
["qemu-standard-pc-i440fx-piix-1996"] = default_1_port_layout,
["VMware, Inc. VMware Virtual Platform"] = default_1_port_layout
}
local default_5_port_config = {