Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openbmc-tools
/
b84cc50e460df0ac69e04a14b7aaa752d7c1f2d9
/
.
/
amboar
/
obmc-scripts
/
reboot
/
reboot.sh
blob: 5b035e7a248381d643e174fcc512cb761631760d [
file
] [
log
] [
blame
]
#!/bin/bash -x
set
-
euo pipefail
CONNECT
=
"$@"
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
i
=
$
((
$i
+
1
))
echo
done