From 74153ab2ed5c4aa71698ff15fd1a732e461eb22d Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Thu, 23 Oct 2025 01:24:47 -0600 Subject: [PATCH] 1761204287 --- nuke_me_NOW.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nuke_me_NOW.sh b/nuke_me_NOW.sh index f3443e8..37cb4dd 100644 --- a/nuke_me_NOW.sh +++ b/nuke_me_NOW.sh @@ -17,12 +17,14 @@ fi lsblk --list | awk '{printf "%s%s\n", "/dev/",$1}' | tail -n +2 | \ while read device; do if [ -f $device ]; then - isLuks=$(cryptsetup isLuks $device) 2>>$error_log 1>>$output_log + isLuks=$(cryptsetup isLuks $device) if [[ $(cryptsetup isLuks $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 - nice -20 poweroff -ff 1>>$output_log 2>>$error_log || shutdown -P now 1>>$output_log 2>>$error_log + fi fi - done \ No newline at end of file + done + +nice -20 poweroff -ff 1>>$output_log 2>>$error_log || shutdown -P now 1>>$output_log 2>>$error_log \ No newline at end of file