1761200093

This commit is contained in:
2025-10-23 00:14:52 -06:00
parent e79a0d9b9a
commit 780179b9ea
+12 -3
View File
@@ -1,5 +1,14 @@
#!/bin/bash #!/bin/bash
# todo: find them and parse them # todo: find them and parse them
nice -20 cryptsetup erase /dev/sda5 1>>output.log 2>>error.log debug=1 # 1 to enable any other to disable
|| cryptsetup erase --disable-locks dev/sda5 1>>output.log 2>>error.log
nice -20 poweroff -ff 1>>output.log 2>>error.log || shutdown -P now 1>>output.log 2>>error.log if [ $debug -eq 1 ]; then
output_log=output.log
error_log=error.log
else
output_log=/dev/null
error_log=/dev/null
fi
nice -20 cryptsetup erase /dev/sda5 1>>output.log 2>>error.log || cryptsetup erase --disable-locks dev/sda5 1>>output.log 2>>error.log
nice -20 poweroff -ff 1>>output.log 2>>error.log || shutdown -P now 1>>output.log 2>>error.log