blob: 16a0756b262d0e74d94ec1eea41450982f9e6901 [file] [log] [blame]
#!/bin/bash
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#### CATEGORY=Device management
### wait for a shell to become available
## usage: fx wait
##
## Attempts to SSH to the target repeatedly until the target becomes
## available.
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/lib/vars.sh || exit $?
until fx-command-run shell exit 2>/dev/null; do
echo -n
done