Update power.sh

This commit is contained in:
Kroese 2024-02-03 19:38:22 +01:00 committed by GitHub
parent 8ec117490f
commit f4a1418b1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,6 @@ _graceful_shutdown() {
local remove_iso=""
if [ ! -f "$STORAGE/windows.old" ]; then
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then
if grep -Fq "Windows Boot Manager" "$QEMU_PTY"; then
[ -f "$STORAGE/$BASE" ] && remove_iso="y"
@ -127,7 +126,6 @@ _graceful_shutdown() {
finish "$code" && return "$code"
fi
fi
fi
# Send ACPI shutdown signal
echo 'system_powerdown' | nc -q 1 -w 1 localhost "${QEMU_PORT}" > /dev/null