Mount command

This commit is contained in:
Bob Mottram 2015-07-04 16:31:59 +01:00
parent 9a1683f67b
commit 731d5cab86
1 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,6 @@ case $key in
-d|--dev)
shift
USB_DRIVE=/dev/${1}1
echo $USB_DRIVE
;;
-m|--master)
shift
@ -97,7 +96,7 @@ cryptsetup luksOpen $USB_DRIVE encrypted_usb
if [ "$?" = "0" ]; then
USB_DRIVE=/dev/mapper/encrypted_usb
fi
echo -n "mount $USB_DRIVE"
mount $USB_DRIVE $USB_MOUNT
if [ ! "$?" = "0" ]; then
echo "There was a problem mounting the USB drive to $USB_MOUNT"
rm -rf $USB_MOUNT