|
@@ -550,6 +550,26 @@ function interactive_configuration {
|
550
|
550
|
|
551
|
551
|
data=$(tempfile 2>/dev/null)
|
552
|
552
|
trap "rm -f $data" 0 1 2 5 15
|
|
553
|
+ SOCIAL_KEY_STR="\nDo you wish to enable social key management, otherwise known as \"the unforgettable key\"?\n\nThis means that fragments of your GPG key will be included with any remote backups so that if you later lose your key then it can be reconstructed from your friends servers. If you select \"no\" then you can still do social key management, but offline using physical USB thumb drives, which is more secure but less convenient."
|
|
554
|
+ if [[ $(grep "ENABLE_SOCIAL_KEY_MANAGEMENT" temp.cfg | awk -F '=' '{print $2}') == "yes" ]]; then
|
|
555
|
+ dialog --title "Social Key Management" \
|
|
556
|
+ --backtitle "Freedombone Configuration" \
|
|
557
|
+ --yesno "$SOCIAL_KEY_STR" 15 60
|
|
558
|
+ else
|
|
559
|
+ dialog --title "Social Key Management" \
|
|
560
|
+ --backtitle "Freedombone Configuration" \
|
|
561
|
+ --defaultno \
|
|
562
|
+ --yesno "$SOCIAL_KEY_STR" 15 60
|
|
563
|
+ fi
|
|
564
|
+ sel=$?
|
|
565
|
+ case $sel in
|
|
566
|
+ 0) ENABLE_SOCIAL_KEY_MANAGEMENT="yes";;
|
|
567
|
+ 255) exit 1;;
|
|
568
|
+ esac
|
|
569
|
+ save_configuration_file
|
|
570
|
+
|
|
571
|
+ data=$(tempfile 2>/dev/null)
|
|
572
|
+ trap "rm -f $data" 0 1 2 5 15
|
553
|
573
|
if [[ $INSTALLING_ON_BBB == "no" ]]; then
|
554
|
574
|
dialog --backtitle "Freedombone Configuration" \
|
555
|
575
|
--radiolist "Type of Random Number Generator:" 10 40 3 \
|
|
@@ -1293,6 +1313,9 @@ function read_configuration {
|
1293
|
1313
|
fi
|
1294
|
1314
|
|
1295
|
1315
|
if [ -f $CONFIGURATION_FILE ]; then
|
|
1316
|
+ if grep -q "ENABLE_SOCIAL_KEY_MANAGEMENT" $CONFIGURATION_FILE; then
|
|
1317
|
+ ENABLE_SOCIAL_KEY_MANAGEMENT=$(grep "ENABLE_SOCIAL_KEY_MANAGEMENT" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
|
1318
|
+ fi
|
1296
|
1319
|
if grep -q "GIT_DOMAIN_NAME" $CONFIGURATION_FILE; then
|
1297
|
1320
|
GIT_DOMAIN_NAME=$(grep "GIT_DOMAIN_NAME" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
1298
|
1321
|
fi
|