mirror of https://github.com/aredn/aredn.git
VMWare support (#1024)
This commit is contained in:
parent
9046357955
commit
abd0f8075a
|
@ -1175,5 +1175,8 @@
|
|||
},
|
||||
"qemu standard pc (i440fx + piix, 1996)": {
|
||||
"name": "QEMU PC"
|
||||
},
|
||||
"vmware, inc. vmware virtual platform": {
|
||||
"name": "VMware PC"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue