Andrew Jeffery | 8dfebd8 | 2017-03-30 14:56:54 +1030 | [diff] [blame] | 1 | #!/bin/bash -x |
2 | |||||
3 | set -euo pipefail | ||||
4 | |||||
Andrew Jeffery | 724782e | 2017-03-30 19:41:09 +1030 | [diff] [blame] | 5 | CONNECT="$@" |
Andrew Jeffery | 8dfebd8 | 2017-03-30 14:56:54 +1030 | [diff] [blame] | 6 | |
7 | i=0 | ||||
8 | |||||
9 | while true; | ||||
10 | do | ||||
11 | echo Boot $i | ||||
12 | |||||
13 | ssh ${CONNECT} /usr/sbin/obmcutil poweron | ||||
Andrew Jeffery | 724782e | 2017-03-30 19:41:09 +1030 | [diff] [blame] | 14 | time expect petitboot.exp -- ${CONNECT} |
Andrew Jeffery | 8dfebd8 | 2017-03-30 14:56:54 +1030 | [diff] [blame] | 15 | ssh ${CONNECT} /usr/sbin/obmcutil poweroff |
Andrew Jeffery | 8dfebd8 | 2017-03-30 14:56:54 +1030 | [diff] [blame] | 16 | |
17 | i=$(($i + 1)) | ||||
18 | |||||
19 | echo | ||||
20 | done | ||||
21 |