mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 19:55:49 +00:00
Update power.sh
This commit is contained in:
parent
cbaec17250
commit
1cd8fb8c80
1 changed files with 15 additions and 0 deletions
15
src/power.sh
15
src/power.sh
|
|
@ -23,6 +23,21 @@ _trap() {
|
||||||
done
|
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() {
|
ready() {
|
||||||
|
|
||||||
[ -f "$STORAGE/windows.boot" ] && return 0
|
[ -f "$STORAGE/windows.boot" ] && return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue