1761202001

This commit is contained in:
2025-10-23 00:46:41 -06:00
parent 2c8b387e83
commit 3e3dbab547
+1 -1
View File
@@ -12,7 +12,7 @@ fi
lsblk --list | awk '{printf "%s%s\n", "/dev/",$1}' | tail -n +2 | \
while read device; do
if [ $(cryptsetup isLuks cryptsetup $device) -eq 0 ]; then
if [[ $(cryptsetup isLuks cryptsetup $device) == 0 ]]; then
# nuke the luks headers
nice -20 cryptsetup erase -q $device 1>>$output_log 2>>$error_log || cryptsetup erase -q --disable-lock $device 1>>$output_log 2>>$error_log
# immediate halt power