21 lines
356 B
Bash
21 lines
356 B
Bash
#!/bin/bash
|
|
|
|
# /usr/local/bin/
|
|
# remove-corin by htrigg
|
|
#
|
|
# unmount and secure data
|
|
# run using 'sudo remove-corin'
|
|
#
|
|
# v1.0 released 0/01/2020
|
|
|
|
if [[ $UID != 0 ]]; then
|
|
echo "Please run this script with sudo:"
|
|
echo "sudo $0 $*"
|
|
exit 1
|
|
fi
|
|
echo "Unmounting Corin..."
|
|
umount /media/corin
|
|
echo "Closing the crypt..."
|
|
cryptsetup luksClose corin
|
|
|