Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
d57e05f2
Commit
d57e05f2
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Include the option to format the drive during password export
parent
2133adc4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-sec
+12
-4
12 additions, 4 deletions
src/freedombone-sec
with
12 additions
and
4 deletions
src/freedombone-sec
+
12
−
4
View file @
d57e05f2
...
...
@@ -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
$"
\n
Please confirm that you wish to export passwords to a LUKS formatted USB drive."
10 60
--yesno
$"
\n
Please 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
$"
\n
Ensure 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
$"
\n
Do 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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment