Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openbmc-tools
/
d317c290dfe2ce0e90ca248ff9141477c00c0a25
/
.
/
amboar
/
obmc-scripts
/
reboot
/
reboot.sh
blob: ba5b99af82ab5e99f712d1dc01705fb28127fec0 [
file
] [
log
] [
blame
]
#!/bin/bash -x
set
-
euo pipefail
CONNECT
=
"$@"
i
=
0
while
true
;
do
echo
Boot
$i
ssh $
{
CONNECT
}
/
usr
/
sbin
/
obmcutil
--
wait poweron
time expect petitboot
.
exp
--
$
{
CONNECT
}
ssh $
{
CONNECT
}
/
usr
/
sbin
/
obmcutil
--
wait poweroff
i
=
$
((
$i
+
1
))
echo
done