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