1761204425

This commit is contained in:
2025-10-23 01:27:04 -06:00
parent 6b960e2f35
commit b6cc8c3b6a
+3 -4
View File
@@ -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