mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
Update power.sh
This commit is contained in:
parent
defc1f7084
commit
54fc94a765
1 changed files with 2 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ _graceful_shutdown() {
|
|||
if [ ! -f "$STORAGE/windows.bios" ]; then
|
||||
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then
|
||||
if grep -Fq "Windows Boot Manager" "$QEMU_PTY"; then
|
||||
remove_iso="y"
|
||||
[ -f "$STORAGE/$BASE" ] && remove_iso="y"
|
||||
else
|
||||
info "Cannot send ACPI signal during Windows setup, aborting..."
|
||||
finish "$code" && return "$code"
|
||||
|
|
@ -152,7 +152,7 @@ _graceful_shutdown() {
|
|||
if [ "$cnt" -ge "$QEMU_TIMEOUT" ]; then
|
||||
error "Shutdown timeout reached, aborting..."
|
||||
else
|
||||
if [ -f "$STORAGE/$BASE" ] && [ -n "$remove_iso" ]; then
|
||||
if [ -n "$remove_iso" ]; then
|
||||
rm -f "$STORAGE/$BASE"
|
||||
touch "$STORAGE/windows.boot"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue