This commit is contained in:
Bob Mottram 2015-11-05 09:25:43 +00:00
parent 34be8d1c04
commit 1dab45d633
1 changed files with 4 additions and 5 deletions

View File

@ -550,12 +550,11 @@ function hubzilla_channel_directory_server {
}
function format_drive {
drive=
drive=
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle "Freedombone Control Panel" \
--title "Format a USB drive" \
--title "Format a USB drive (LUKS encrypted)" \
--radiolist "Choose a drive:" 14 70 5 \
1 "sda (Beaglebone Black)" off \
2 "sdb" off \
@ -605,7 +604,7 @@ function menu_backup_restore {
5 "Restore from remote backup" off \
6 "Backup GPG key to USB (master keydrive)" off \
7 "Backup GPG key to USB (fragment keydrive)" off \
8 "Format a USB drive" off \
8 "Format a USB drive (LUKS encrypted)" off \
9 "Back to main menu" on 2> $data
sel=$?
case $sel in
@ -620,7 +619,7 @@ function menu_backup_restore {
5) restore_data_remote;;
6) create_keydrive_master;;
7) create_keydrive_fragment;;
7) format_drive;;
8) format_drive;;
9) break;;
esac
done