From f8ee4896f2a0c838c8ac1fd3fb5b53b8dfa6f12f Mon Sep 17 00:00:00 2001 From: openoms Date: Mon, 11 Oct 2021 14:39:24 +0100 Subject: [PATCH] cl.backup: read key on BACKUP and improve output --- home.admin/99clRepairMenu.sh | 6 ++++++ home.admin/config.scripts/cl.backup.sh | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home.admin/99clRepairMenu.sh b/home.admin/99clRepairMenu.sh index 39e88fd22..eb88a29e4 100644 --- a/home.admin/99clRepairMenu.sh +++ b/home.admin/99clRepairMenu.sh @@ -77,6 +77,9 @@ case $CHOICE in /home/admin/config.scripts/cl.backup.sh cl-export-gui production $_temp source $_temp 2>/dev/null sudo rm $_temp 2>/dev/null + echo + echo "Press ENTER when finished downloading." + read key ;; RESET) @@ -89,6 +92,7 @@ case $CHOICE in sudo rm $_temp 2>/dev/null echo echo "The rescue file is stored on the SDcard named cl-rescue.*.tar.gz just in case." + echo echo "The next step will overwrite the old C-lighthning $CHAIN wallet" echo "Press ENTER to continue or CTRL+C to abort" read key @@ -126,6 +130,7 @@ case $CHOICE in sudo rm $_temp 2>/dev/null echo echo "The rescue file is stored on the SDcard named cl-rescue.*.tar.gz just in case." + echo echo "The next step will overwrite the old C-lighthning $CHAIN wallet" echo "Press ENTER to continue or CTRL+C to abort" read key @@ -150,6 +155,7 @@ case $CHOICE in sudo rm $_temp 2>/dev/null echo echo "The rescue file is stored on the SDcard named cl-rescue.*.tar.gz just in case." + echo echo "The next step will overwrite the old C-lighthning $CHAIN wallet" echo "Press ENTER to continue or CTRL+C to abort" read key diff --git a/home.admin/config.scripts/cl.backup.sh b/home.admin/config.scripts/cl.backup.sh index 5027c31d2..bf827591a 100644 --- a/home.admin/config.scripts/cl.backup.sh +++ b/home.admin/config.scripts/cl.backup.sh @@ -81,8 +81,7 @@ if [ ${mode} = "cl-export" ]; then fi if [ ${mode} = "cl-export-gui" ]; then - - # create lnd rescue file + echo "# Create the CL rescue file ..." source <(/home/admin/config.scripts/cl.backup.sh cl-export) if [ "${error}" != "" ]; then echo "error='${error}'"