notice after error

This commit is contained in:
Hellekin O. Wolf =8) 2011-02-12 08:26:42 +01:00
parent 0396acd236
commit 7756dc1610

View File

@ -535,10 +535,10 @@ mount_tomb() {
elif [ -r "$tombdir/$tombkey" ]; then elif [ -r "$tombdir/$tombkey" ]; then
tombkeypath="$tombdir/$tombkey" tombkeypath="$tombdir/$tombkey"
else else
notice "please insert your USB KEY"
error "encryption key ${enc_key} not found on disk" error "encryption key ${enc_key} not found on disk"
error "use -k option to specify which key to use" error "use -k option to specify which key to use"
error "or provide a usb key, or press ctrl-c to abort" error "provide a usb key now, or press ctrl-c to abort"
notice "please insert your USB KEY"
ask_usbkey ask_usbkey
# returns usbkey_mount, now check if the key is there # returns usbkey_mount, now check if the key is there
if [ -r ${usbkey_mount}/.tomb/${tombkey} ]; then if [ -r ${usbkey_mount}/.tomb/${tombkey} ]; then