New beggining.

This commit is contained in:
Crony Akatsuki 2022-12-26 14:20:37 +01:00
commit 6964b2b200
33 changed files with 1281 additions and 0 deletions

13
mount-luks Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
# get the drive path
drive="$1"
# open the encrypted drive
sudo cryptsetup luksOpen $drive luks
# check if the /mnt/encrypted directory exists if not create it
[ -d "/mnt/encrypted/" ] || sudo mkdir -p /mnt/encrypted
# mount the decrypted drive to /mnt/encrypted/ directory
sudo mount /dev/mapper/luks /mnt/encrypted