This commit is contained in:
Bob Mottram 2015-08-15 14:11:55 +01:00
parent ca649effc7
commit b2609f0f16
1 changed files with 4 additions and 2 deletions

View File

@ -344,7 +344,8 @@ function regenerate_dh_keys {
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle "Freedombone Security Configuration" \
--radiolist "Select a Diffie-Hellman key length. The smaller length is better suited to low power embedded systems:" 12 40 2 \
--title "Diffie-Hellman key length" \
--radiolist "The smaller length is better suited to low power embedded systems:" 10 40 2 \
1 "1024 bits" off \
2 "3072 bits" on 2> $data
sel=$?
@ -375,7 +376,8 @@ function regenerate_dh_keys {
function housekeeping {
cmd=(dialog --separate-output \
--backtitle "Freedombone Security Configuration" \
--checklist "Housekeeping options. If you don't need to do any of these things then just press Enter:" 10 76 16)
--title "Housekeeping options" \
--checklist "If you don't need to do any of these things then just press Enter:" 10 76 16)
options=(1 "Regenerate ssh host keys" off
2 "Regenerate Diffie-Hellman keys" off)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)