2 # Copyright (C) 2016 Ian Kelling
4 # distro setup full. (assuming we already synced data files to the host)
7 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
10 if [[ $1 == -r ]]; then
17 if [[ ! $host ||
$host == -h ]]; then
18 echo "$0: error: expected 1 arg of hostname"
24 # untested, this caused hang using here doc.
25 ssh $host "touch /tmp/keyscript-off; sudo reboot" ||
:
29 while ! ssh $host :; do