Skip to content
Snippets Groups Projects
Unverified Commit 1c85599b authored by anarcat's avatar anarcat
Browse files

merge last two lines because it is more reliable

We might not have a shell again after the long final badblocks call:
we might have lost the original terminal, network might have cut us
off, etc. By doing this in a single pipeline, we make sure the
shutdown actually gets called.
parent 8384956f
No related branches found
No related tags found
No related merge requests found
......@@ -75,10 +75,9 @@ This will take a long time. When you return:
sync
7. wipe the remaining disk (note the dangerous `-f`):
badblocks -w -s -v -p 2 -f /dev/sda
8. shut down the system:
7. wipe the remaining disk (note the dangerous `-f`) and shutdown:
badblocks -w -s -v -p 2 -f /dev/sda ; \
echo "SHUTTING DOWN FOREVER IN ONE MINUTE" ; \
sleep 60 ; \
echo o > /proc/sysrq-trigger
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment