diff --git a/man/freedombone-keydrive.1.gz b/man/freedombone-keydrive.1.gz index f32846e5..fce2a053 100644 Binary files a/man/freedombone-keydrive.1.gz and b/man/freedombone-keydrive.1.gz differ diff --git a/src/freedombone-keydrive b/src/freedombone-keydrive index 80f5687c..570044b0 100755 --- a/src/freedombone-keydrive +++ b/src/freedombone-keydrive @@ -31,13 +31,14 @@ USB_DRIVE=/dev/sdb1 USB_MOUNT=/mnt/usb +KEY_FRAGMENTS=3 FRAGMENTS_DIR=$USB_MOUNT/.gnupg_fragments MY_USERNAME=$USER MASTER_DRIVE="no" function show_help { echo '' - echo 'freedombone-keydrive -u [username] -d [device, eg. sdb] --master [yes/no]' + echo 'freedombone-keydrive -u [username] -d [device, eg. sdb] --master [yes/no] -n [no of fragments]' echo '' exit 0 } @@ -62,6 +63,10 @@ case $key in shift MASTER_DRIVE="$1" ;; + -n|--fragments) + shift + KEY_FRAGMENTS=$1 + ;; *) # unknown option ;; @@ -158,7 +163,7 @@ fi LOCAL_FRAGMENTS_DIR=/home/$MY_USERNAME/.gnupg_fragments if [ ! -d $LOCAL_FRAGMENTS_DIR ]; then - freedombone-splitkey -u $MY_USERNAME + freedombone-splitkey -u $MY_USERNAME -n $KEY_FRAGMENTS fi cd $LOCAL_FRAGMENTS_DIR @@ -167,7 +172,7 @@ if [ ! "$?" = "0" ]; then no_of_local_shares=0 fi if (( no_of_local_shares < 3 )); then - freedombone-splitkey -u $MY_USERNAME + freedombone-splitkey -u $MY_USERNAME -n $KEY_FRAGMENTS cd $LOCAL_FRAGMENTS_DIR no_of_local_shares=$(ls -afq keyshare.asc.* | wc -l) if [ ! "$?" = "0" ]; then diff --git a/website/EN/backups.html b/website/EN/backups.html index 02969591..a6cc6d44 100644 --- a/website/EN/backups.html +++ b/website/EN/backups.html @@ -4,7 +4,7 @@ - +