mirror of
https://github.com/unraid/webgui.git
synced 2026-01-04 08:29:51 -06:00
16 lines
550 B
Bash
Executable File
16 lines
550 B
Bash
Executable File
#!/bin/bash
|
|
DISABLE="no"
|
|
source /boot/config/domain.cfg
|
|
if [ $DISABLE == "yes" ]
|
|
then
|
|
printf '\n%s\n' "Start/autostart is disabled in VM settings." >&2 ## Send message to stderr.
|
|
exit 1 ;
|
|
fi
|
|
PCI="no"
|
|
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.
|
|
exit 1 ;
|
|
fi
|
|
eval exec /usr/bin/qemu-system-x86_64 $(/usr/local/emhttp/plugins/dynamix.vm.manager/scripts/qemu.php "$@") |