mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
feat: Detect SeaBIOS
This commit is contained in:
parent
f95f7fe1a7
commit
23c9529440
1 changed files with 7 additions and 6 deletions
|
|
@ -118,15 +118,16 @@ _graceful_shutdown() {
|
|||
|
||||
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then
|
||||
if ! grep -Fq "Windows Boot Manager" "$QEMU_PTY"; then
|
||||
if ! grep -Fq "SeaBIOS" "$QEMU_PTY"; then
|
||||
info "Cannot send ACPI signal during Windows setup, aborting..."
|
||||
finish "$code" && return "$code"
|
||||
else
|
||||
fi
|
||||
fi
|
||||
if [ -f "$STORAGE/$BASE" ]; then
|
||||
rm -f "$STORAGE/$BASE"
|
||||
touch "$STORAGE/windows.boot"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Send ACPI shutdown signal
|
||||
echo 'system_powerdown' | nc -q 1 -w 1 localhost "${QEMU_PORT}" > /dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue