xref: /openbmc/openbmc-tools/reboot/reboot.sh (revision cf3c1e67)
1#!/bin/bash -x
2
3set -euo pipefail
4
5CONNECT="$@"
6
7i=0
8
9while true;
10do
11    echo Boot $i
12
13    ssh ${CONNECT} /usr/sbin/obmcutil --wait poweron
14    time expect petitboot.exp -- ${CONNECT}
15    ssh ${CONNECT} /usr/sbin/obmcutil --wait poweroff
16
17    i=$(($i + 1))
18
19    echo
20done
21
22