1 2 3 4 5
#!/bin/sh # Mounts LUKS encrypted USB lsblk | grep -q "cryptusb" || sudo cryptsetup open /dev/sdc cryptusb sudo mount /dev/mapper/cryptusb /mnt/cryptusb