Unverified Commit ece8bdf0 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Change condition to check for qmp.sock socket

parent 87257ed4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ _graceful_shutdown() {
    fi

    # Send ACPI shutdown signal
    if [ ! -S "$QEMU_DIR/qmp.sock" ]; then
    if [ -S "$QEMU_DIR/qmp.sock" ]; then
      nc -q 1 -w 1 -U "$QEMU_DIR/qmp.sock" > /dev/null <<<'system_powerdown' || :
    fi