mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
18 lines
473 B
Text
18 lines
473 B
Text
|
#!/bin/bash
|
||
|
# Copyright 2021 The Chromium OS Authors. All rights reserved.
|
||
|
# Use of this source code is governed by a BSD-style license that can be
|
||
|
# found in the LICENSE file.
|
||
|
#
|
||
|
# Waits indefinitely for the VM to become available.
|
||
|
|
||
|
test_ssh="ssh -o ConnectTimeout=1 vm -t exit"
|
||
|
|
||
|
if ! $test_ssh 2>/dev/null >/dev/null; then
|
||
|
echo "Waiting for VM to be available."
|
||
|
until $test_ssh 2>/dev/null >/dev/null; do
|
||
|
sleep 1
|
||
|
printf "."
|
||
|
done
|
||
|
echo ""
|
||
|
fi
|