OpenBMC reboot loop for POWER hosts
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/reboot.sh b/reboot.sh
new file mode 100755
index 0000000..ba674c0
--- /dev/null
+++ b/reboot.sh
@@ -0,0 +1,22 @@
+#!/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
+