Andrew Jeffery | 8dfebd8 | 2017-03-30 14:56:54 +1030 | [diff] [blame^] | 1 | #!/bin/bash -x |
2 | |||||
3 | set -euo pipefail | ||||
4 | |||||
5 | CONNECT=$1 | ||||
6 | |||||
7 | i=0 | ||||
8 | |||||
9 | while true; | ||||
10 | do | ||||
11 | echo Boot $i | ||||
12 | |||||
13 | ssh ${CONNECT} /usr/sbin/obmcutil poweron | ||||
14 | time expect petitboot.exp ${CONNECT} | ||||
15 | ssh ${CONNECT} /usr/sbin/obmcutil poweroff | ||||
16 | sleep 20 # mboxd reload period. Remove when protocol v2 daemon is integrated | ||||
17 | |||||
18 | i=$(($i + 1)) | ||||
19 | |||||
20 | echo | ||||
21 | done | ||||
22 |