usb drive option to keydrive can include path
This commit is contained in:
parent
4c62933e5d
commit
5831b29fb5
|
@ -1055,7 +1055,7 @@ function create_keydrive_master {
|
||||||
--msgbox $"Plug in a LUKS encrypted USB drive" 6 40
|
--msgbox $"Plug in a LUKS encrypted USB drive" 6 40
|
||||||
clear
|
clear
|
||||||
detect_usb_drive
|
detect_usb_drive
|
||||||
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME --master 'yes'
|
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME --master 'yes' -d $USB_DRIVE
|
||||||
any_key
|
any_key
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1068,7 +1068,7 @@ function create_keydrive_fragment {
|
||||||
--msgbox $"Plug in a LUKS encrypted USB drive" 6 40
|
--msgbox $"Plug in a LUKS encrypted USB drive" 6 40
|
||||||
clear
|
clear
|
||||||
detect_usb_drive
|
detect_usb_drive
|
||||||
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME
|
${PROJECT_NAME}-keydrive -u $SELECTED_USERNAME -d $USB_DRIVE
|
||||||
any_key
|
any_key
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,11 @@ case $key in
|
||||||
;;
|
;;
|
||||||
-d|--dev)
|
-d|--dev)
|
||||||
shift
|
shift
|
||||||
|
if [[ "${1}" != '/dev/'* ]]; then
|
||||||
USB_DRIVE=/dev/${1}1
|
USB_DRIVE=/dev/${1}1
|
||||||
|
else
|
||||||
|
USB_DRIVE=${1}
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
-m|--master)
|
-m|--master)
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in New Issue