Corin's backup scripts
This commit is contained in:
20
bash/remove-corin
Normal file
20
bash/remove-corin
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user