diff --git a/home.admin/config.scripts/cl.hsmtool.sh b/home.admin/config.scripts/cl.hsmtool.sh index 3f20f546f..c209d8c2c 100644 --- a/home.admin/config.scripts/cl.hsmtool.sh +++ b/home.admin/config.scripts/cl.hsmtool.sh @@ -355,12 +355,13 @@ elif [ "$1" = "encrypt" ]; then shred /home/bitcoin/.lightning/${CLNETWORK}/seedwords.info fi echo " -# This file is placed by cl.hsmtool.sh . +# This file was placed by cl.hsmtool.sh # The seed words from which the hsm_secret in the same directory was generated from # were $deletedWhen. # The words cannot be generated from the hsm_secret (one way function). -# If you don't have the words the hsm_secret can be still backed up in hex: +# If you don't have the words the hsm_secret can be still backed up as a file or in hex: # https://lightning.readthedocs.io/BACKUP.html#hsm-secret +# https://github.com/rootzoll/raspiblitz/blob/dev/FAQ.cl.md#seed " | sudo -u bitcoin tee /home/bitcoin/.lightning/${CLNETWORK}/seedwords.info # encrypt walletPassword=$3 diff --git a/home.admin/config.scripts/cl.install.sh b/home.admin/config.scripts/cl.install.sh index ee966670d..e48fd5457 100644 --- a/home.admin/config.scripts/cl.install.sh +++ b/home.admin/config.scripts/cl.install.sh @@ -412,16 +412,23 @@ if [ "$1" = "display-seed" ]; then source ${seedwordFile} #echo "# seedwords(${seedwords})" #echo "# seedwords6x4(${seedwords6x4})" - ack=0 - while [ ${ack} -eq 0 ] - do - whiptail --title "C-Lightning ${displayNetwork} Wallet" \ - --msgbox "This is your C-Lightning ${displayNetwork} wallet seed. Store these numbered words in a safe location:\n\n${seedwords6x4}" 13 76 - whiptail --title "Please Confirm" --yes-button "Show Again" --no-button "CONTINUE" --yesno " Are you sure that you wrote down the word list?" 8 55 - if [ $? -eq 1 ]; then - ack=1 - fi - done + if [ ${#seedwords6x4} -gt 0 ];then + ack=0 + while [ ${ack} -eq 0 ] + do + whiptail --title "C-Lightning ${displayNetwork} Wallet" \ + --msgbox "This is your C-Lightning ${displayNetwork} wallet seed. Store these numbered words in a safe location:\n\n${seedwords6x4}" 13 76 + whiptail --title "Please Confirm" --yes-button "Show Again" --no-button "CONTINUE" --yesno " Are you sure that you wrote down the word list?" 8 55 + if [ $? -eq 1 ]; then + ack=1 + fi + done + else + dialog \ + --title "C-Lightning ${displayNetwork} Wallet" \ + --exit-label "exit" \ + --textbox "${seedwordFile}" 14 92 + fi else # hsmFile="/home/bitcoin/.lightning/${CLNETWORK}/hsm_secret" whiptail --title "C-Lightning ${displayNetwork} Wallet Info" --msgbox "Your C-Lightning ${displayNetwork} wallet was already created before - there are no seed words available.\n\nTo secure your wallet secret you can manually backup the file: /home/bitcoin/.lightning/${CLNETWORK}/hsm_secret" 11 76