mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Update power.sh
This commit is contained in:
parent
554dd91f7f
commit
9a9832f57b
1 changed files with 4 additions and 4 deletions
|
|
@ -137,18 +137,18 @@ _graceful_shutdown() {
|
|||
finish "$code" && return "$code"
|
||||
fi
|
||||
|
||||
local abort="Cannot send ACPI signal during Windows setup, aborting..."
|
||||
|
||||
if [ -f "$QEMU_PTY" ] && [ ! -f "$STORAGE/windows.boot" ]; then
|
||||
if [ ! -f "$STORAGE/windows.old" ]; then
|
||||
if ! grep -Fq "$BOOT_LINE" "$QEMU_PTY"; then
|
||||
info "Cannot send ACPI signal during Windows setup, aborting..."
|
||||
finish "$code" && return "$code"
|
||||
info "$abort" && finish "$code" && return "$code"
|
||||
fi
|
||||
else
|
||||
local last
|
||||
last=$(tail -n 1 "$QEMU_PTY")
|
||||
if [[ "${last,,}" != "${BIOS_LINE,,}" ]]; then
|
||||
info "Cannot send ACPI signal during Windows setup, aborting..."
|
||||
finish "$code" && return "$code"
|
||||
info "$abort" && finish "$code" && return "$code"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue