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
d3d37cda63
commit
ed587a0539
1 changed files with 2 additions and 2 deletions
|
|
@ -118,12 +118,12 @@ _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
|
||||||
if ! grep -Fq "SeaBIOS" "$QEMU_PTY"; then
|
if [ ! -f "$STORAGE/windows.bios" ]; then
|
||||||
info "Cannot send ACPI signal during Windows setup, aborting..."
|
info "Cannot send ACPI signal during Windows setup, aborting..."
|
||||||
finish "$code" && return "$code"
|
finish "$code" && return "$code"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -f "$STORAGE/$BASE" ]; then
|
if [ -f "$STORAGE/$BASE" ] && [ ! -f "$STORAGE/windows.bios" ]; then
|
||||||
rm -f "$STORAGE/$BASE"
|
rm -f "$STORAGE/$BASE"
|
||||||
touch "$STORAGE/windows.boot"
|
touch "$STORAGE/windows.boot"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue