Update power.sh
This commit is contained in:
parent
8ec117490f
commit
f4a1418b1f
1 changed files with 6 additions and 8 deletions
14
src/power.sh
14
src/power.sh
|
@ -118,14 +118,12 @@ _graceful_shutdown() {
|
||||||
|
|
||||||
local remove_iso=""
|
local remove_iso=""
|
||||||
|
|
||||||
if [ ! -f "$STORAGE/windows.old" ]; then
|
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
|
[ -f "$STORAGE/$BASE" ] && remove_iso="y"
|
||||||
[ -f "$STORAGE/$BASE" ] && remove_iso="y"
|
else
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue