Update power.sh

This commit is contained in:
Kroese 2024-04-29 18:19:34 +02:00 committed by GitHub
parent cbaec17250
commit 1cd8fb8c80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,21 @@ _trap() {
done
}
boot() {
[ -f "$QEMU_END" ] && return 0
if [ -s "$QEMU_PTY" ]; then
if grep -iq " hard" "$QEMU_PTY"; then
info "Windows started succesfully, visit http://localhost:8006/ to view the screen..."
return 0
fi
fi
error "Timeout while waiting for QEMU to boot the machine!"
return 0
}
ready() {
[ -f "$STORAGE/windows.boot" ] && return 0