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 |
| 16 | sleep 20 # mboxd reload period. Remove when protocol v2 daemon is integrated |
| 17 | |
| 18 | i=$(($i + 1)) |
| 19 | |
| 20 | echo |
| 21 | done |
| 22 | |