Today, I had to do a lot of reboots just to check one issue with ACPI that could prevent a machine to correctly boot up. I begun doing up to ten reboots, but in the end, I could not bare with that, and did this small script to check it( just needed to put my public ssh key on the machine:
1 | #!/bin/bash |
2 | for i in {1..50} |
3 | do |
4 | sleep 90 |
5 | echo "Reboot $i " |
6 | ssh root@192.168.1.57 init 6 |
7 | done |