mirror of
https://github.com/unraid/webgui.git
synced 2025-12-30 22:20:23 -06:00
Merge pull request #2283 from SimonFair/Fix-PCI-changes
Fix: PCI Changes
This commit is contained in:
@@ -70,7 +70,7 @@ case "changed":
|
||||
file_put_contents($savedfile,json_encode($saved,JSON_PRETTY_PRINT));
|
||||
break;
|
||||
case "getvm":
|
||||
$pcimap = build_pci_vm_map();
|
||||
$pcimap = ($libvirt_running == "yes") ? build_pci_vm_map() : [];
|
||||
$pciaddrs = explode(";", $pciaddr);
|
||||
$vmact =[];
|
||||
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
require_once "$docroot/webGui/include/Helpers.php";
|
||||
|
||||
|
||||
$pci_device_changes = comparePCIData();
|
||||
|
||||
if (count($pci_device_changes) > 0) {
|
||||
my_logger("PCI Changes not acknowledged skip save","savepcidata.");
|
||||
return;
|
||||
}
|
||||
|
||||
$output = shell_exec('lspci -Dmn');
|
||||
$devices = [];
|
||||
|
||||
Reference in New Issue
Block a user