commit | 8dfebd8dc49d22ecac400e0cc29ca1cc1e3dce98 | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@aj.id.au> | Thu Mar 30 14:56:54 2017 +1030 |
committer | Andrew Jeffery <andrew@aj.id.au> | Thu Mar 30 20:45:29 2017 +1030 |
tree | ce5187f3004c8d5535bdbd8513ce31ac534a78fc |
OpenBMC reboot loop for POWER hosts Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/petitboot.exp b/petitboot.exp new file mode 100644 index 0000000..5477054 --- /dev/null +++ b/petitboot.exp
@@ -0,0 +1,12 @@ +#!/usr/bin/expect -df -- + +set timeout 300 + +spawn ssh -p2200 $argv + +expect { + -ex "Petitboot" { exit } + timeout { exit 1 } + eof { exit 2 } + .* { exp_continue } +}