1761204425
This commit is contained in:
+3
-4
@@ -19,14 +19,13 @@ lsblk --list | awk '{printf "%s%s\n", "/dev/",$1}' | tail -n +2 | \
|
|||||||
if [ -f $device ]; then
|
if [ -f $device ]; then
|
||||||
isLuks=$(cryptsetup isLuks $device)
|
isLuks=$(cryptsetup isLuks $device)
|
||||||
echo $isLuks
|
echo $isLuks
|
||||||
echo $device
|
if [[ $isLuks == 0 ]]; then
|
||||||
if [[ $(cryptsetup isLuks $device) == 0 ]]; then
|
echo nukin
|
||||||
# nuke the luks headers
|
# 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
|
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
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# immediate halt power
|
||||||
nice -20 poweroff -ff 1>>$output_log 2>>$error_log || shutdown -P now 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
|
||||||
Reference in New Issue
Block a user