diff --git a/src/freedombone-sec b/src/freedombone-sec index 907d96b4..e51c6330 100755 --- a/src/freedombone-sec +++ b/src/freedombone-sec @@ -74,17 +74,25 @@ function export_passwords { data=$(tempfile 2>/dev/null) trap "rm -f $data" 0 1 2 5 15 dialog --title $"Export passwords to USB drive $USB_DRIVE" \ - --backtitle $"Freedombone Control Panel" \ + --backtitle $"Security Settings" \ --defaultno \ - --yesno $"\nPlease confirm that you wish to export passwords to a LUKS formatted USB drive." 10 60 + --yesno $"\nPlease confirm that you wish to export passwords to a LUKS formatted USB drive. The drive should be plugged in." 10 60 sel=$? case $sel in 1) return;; 255) return;; esac - dialog --title $"Export passwords" \ - --msgbox $"\nEnsure that the USB drive is plugged in then press Enter and type in the drive's encryption password" 8 60 + data=$(tempfile 2>/dev/null) + trap "rm -f $data" 0 1 2 5 15 + dialog --title $"Export passwords to USB drive $USB_DRIVE" \ + --backtitle $"Security Settings" \ + --defaultno \ + --yesno $"\nDo you need to format the drive as LUKS encrypted?" 12 60 + sel=$? + case $sel in + 0) ${PROJECT_NAME}-format $USB_DRIVE;; + esac clear backup_mount_drive ${USB_DRIVE}