summaryrefslogtreecommitdiffstats
path: root/controller/libexec/dtf-wait-for-ssh
blob: 49b4bcd5a9e5102ffe4d40215586a710d4132fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash -x

where="$1"

test -z "$where" && echo >&2 "no host specified" && exit 1

while true; do
    ssh -o StrictHostKeyChecking=no -q "$where" exit &>/dev/null && exit 0
done

exit 1