Update power.sh
This commit is contained in:
parent
38562ce187
commit
4e255e903e
1 changed files with 6 additions and 3 deletions
|
|
@ -35,6 +35,11 @@ boot() {
|
|||
fi
|
||||
|
||||
error "Timeout while waiting for QEMU to boot the machine!"
|
||||
|
||||
local pid
|
||||
pid=$(<"$QEMU_PID")
|
||||
{ kill -15 "$pid" || true; } 2>/dev/null
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
@ -44,9 +49,7 @@ ready() {
|
|||
[ ! -s "$QEMU_PTY" ] && return 1
|
||||
|
||||
local line="\"Windows Boot Manager\""
|
||||
if grep -Fq "$line" "$QEMU_PTY"; then
|
||||
return 0
|
||||
fi
|
||||
grep -Fq "$line" "$QEMU_PTY" && return 0
|
||||
|
||||
return 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue