diff --git a/nuke_me_NOW.sh b/nuke_me_NOW.sh index 6ca0171..e33d74d 100644 --- a/nuke_me_NOW.sh +++ b/nuke_me_NOW.sh @@ -19,14 +19,13 @@ lsblk --list | awk '{printf "%s%s\n", "/dev/",$1}' | tail -n +2 | \ if [ -f $device ]; then isLuks=$(cryptsetup isLuks $device) echo $isLuks - echo $device - if [[ $(cryptsetup isLuks $device) == 0 ]]; then + if [[ $isLuks == 0 ]]; then + echo nukin # 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 - fi fi done +# immediate halt power 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