From c833f67b5970dcd4f7e69ddabe4cb15300ef6749 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Fri, 17 Jun 2022 06:07:10 -0400 Subject: Consolidated encrypted USB scripts and removed redundancy Removed the mount-cryptusb and unmount-cryptusb scripts which are now redundant that mount-device and unmount-device handle LUKS devices. Consolidated encrypted USB script into sync-cryptusb, which now calls mount-device and unmount-device. --- .local/bin/cryptusb/mount-cryptusb | 9 --------- 1 file changed, 9 deletions(-) delete mode 100755 .local/bin/cryptusb/mount-cryptusb (limited to '.local/bin/cryptusb/mount-cryptusb') diff --git a/.local/bin/cryptusb/mount-cryptusb b/.local/bin/cryptusb/mount-cryptusb deleted file mode 100755 index 299ad15..0000000 --- a/.local/bin/cryptusb/mount-cryptusb +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -# Mounts LUKS encrypted USB - -devs="$(lsblk -lp | grep -E "(disk|part) $" | awk '{print $1,"-",$4}')" -[ "$devs" = "" ] && exit 0 -dev="$(echo "$devs" | dmenu -i -p "Select device" | cut -d ' ' -f 1)" -[ "$dev" = "" ] && exit 0 -lsblk | grep -q "cryptusb" || sudo cryptsetup open $dev cryptusb -sudo mount /dev/mapper/cryptusb /mnt/cryptusb -- cgit v1.2.3