From fd93756a9866dd1dfb2a4daa5562ea54af3ec491 Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Sat, 10 May 2025 12:12:42 +0100 Subject: [PATCH] Add pci checks in qemu --- emhttp/plugins/dynamix.vm.manager/scripts/pcicheck.php | 2 +- sbin/qemu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix.vm.manager/scripts/pcicheck.php b/emhttp/plugins/dynamix.vm.manager/scripts/pcicheck.php index b8e116e45..d0425b8b1 100755 --- a/emhttp/plugins/dynamix.vm.manager/scripts/pcicheck.php +++ b/emhttp/plugins/dynamix.vm.manager/scripts/pcicheck.php @@ -16,7 +16,7 @@ $docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp'); require_once "$docroot/webGui/include/Helpers.php"; -require_once "$docroot/plugins/dynamix.vm.manager/include/libvirt_helpers.php"; + $pci_device_changes = comparePCIData(); $pcierror = false; diff --git a/sbin/qemu b/sbin/qemu index 79415243a..da3c4945f 100755 --- a/sbin/qemu +++ b/sbin/qemu @@ -7,7 +7,7 @@ if [ $DISABLE == "yes" ] exit 1 ; fi PCI="no" -#PCI=$(/usr/local/emhttp/plugins/dynamix.vm.manager/scripts/pcicheck.php "$@"); +PCI=$(/usr/local/emhttp/plugins/dynamix.vm.manager/scripts/pcicheck.php "$@"); if [ $PCI == "yes" ] then printf '\n%s\n' "Start/autostart is disabled PCI Change detected." >&2 ## Send message to stderr.