blob: ba674c0d5cf5a7cd49dde6b522bd322da046fd67 [file] [log] [blame]
#!/bin/bash -x
set -euo pipefail
CONNECT=$1
i=0
while true;
do
echo Boot $i
ssh ${CONNECT} /usr/sbin/obmcutil poweron
time expect petitboot.exp ${CONNECT}
ssh ${CONNECT} /usr/sbin/obmcutil poweroff
sleep 20 # mboxd reload period. Remove when protocol v2 daemon is integrated
i=$(($i + 1))
echo
done