usb drive option to keydrive can include path

This commit is contained in:
Bob Mottram 2017-06-23 15:55:07 +01:00
parent 4c62933e5d
commit 5831b29fb5
2 changed files with 7 additions and 3 deletions

View File

@ -1055,7 +1055,7 @@ function create_keydrive_master {
--msgbox $"Plug in a LUKS encrypted USB drive" 6 40
clear
detect_usb_drive
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME --master 'yes'
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME --master 'yes' -d $USB_DRIVE
any_key
}
@ -1068,7 +1068,7 @@ function create_keydrive_fragment {
--msgbox $"Plug in a LUKS encrypted USB drive" 6 40
clear
detect_usb_drive
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME -d $USB_DRIVE
any_key
}

View File

@ -62,7 +62,11 @@ case $key in
;;
-d|--dev)
shift
if [[ "${1}" != '/dev/'* ]]; then
USB_DRIVE=/dev/${1}1
else
USB_DRIVE=${1}
fi
;;
-m|--master)
shift