Tidying
This commit is contained in:
parent
34be8d1c04
commit
1dab45d633
@ -551,11 +551,10 @@ function hubzilla_channel_directory_server {
|
|||||||
|
|
||||||
function format_drive {
|
function format_drive {
|
||||||
drive=
|
drive=
|
||||||
|
|
||||||
data=$(tempfile 2>/dev/null)
|
data=$(tempfile 2>/dev/null)
|
||||||
trap "rm -f $data" 0 1 2 5 15
|
trap "rm -f $data" 0 1 2 5 15
|
||||||
dialog --backtitle "Freedombone Control Panel" \
|
dialog --backtitle "Freedombone Control Panel" \
|
||||||
--title "Format a USB drive" \
|
--title "Format a USB drive (LUKS encrypted)" \
|
||||||
--radiolist "Choose a drive:" 14 70 5 \
|
--radiolist "Choose a drive:" 14 70 5 \
|
||||||
1 "sda (Beaglebone Black)" off \
|
1 "sda (Beaglebone Black)" off \
|
||||||
2 "sdb" off \
|
2 "sdb" off \
|
||||||
@ -605,7 +604,7 @@ function menu_backup_restore {
|
|||||||
5 "Restore from remote backup" off \
|
5 "Restore from remote backup" off \
|
||||||
6 "Backup GPG key to USB (master keydrive)" off \
|
6 "Backup GPG key to USB (master keydrive)" off \
|
||||||
7 "Backup GPG key to USB (fragment 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
|
9 "Back to main menu" on 2> $data
|
||||||
sel=$?
|
sel=$?
|
||||||
case $sel in
|
case $sel in
|
||||||
@ -620,7 +619,7 @@ function menu_backup_restore {
|
|||||||
5) restore_data_remote;;
|
5) restore_data_remote;;
|
||||||
6) create_keydrive_master;;
|
6) create_keydrive_master;;
|
||||||
7) create_keydrive_fragment;;
|
7) create_keydrive_fragment;;
|
||||||
7) format_drive;;
|
8) format_drive;;
|
||||||
9) break;;
|
9) break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user