From 6ff13d8420c1024153e303e379534ce9d739f67e Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 7 Apr 2021 12:57:03 -0600 Subject: remove unused usb mounting script --- scripts/pny | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 scripts/pny (limited to 'scripts') diff --git a/scripts/pny b/scripts/pny deleted file mode 100755 index f8da92c..0000000 --- a/scripts/pny +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -if [[ $1 == "mount" ]]; then - DEVICE=`dmesg | tail | grep 'Attached SCSI' | sed -n 's/.*: \[\(sd[a-z]\)\] Attac.*/\1/p'` - - if [[ $DEVICE == "" ]]; then - echo "Error finding device" - exit 1 - fi - - echo "Mounting /dev/${DEVICE}1" - - sudo cryptsetup luksOpen /dev/${DEVICE}1 usbkey - sudo mount -o user,exec /dev/mapper/usbkey /home/jason/sdb -elif [[ $1 == "unmount" ]]; then - echo "Unmounting /dev/mapper/usbkey" - - sudo umount /dev/mapper/usbkey - sudo cryptsetup luksClose /dev/mapper/usbkey -else - echo "mount or unmount?" -fi -- cgit v1.2.1