From 68897ec7f6488343305440fda923b99db26a15f6 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 3 Dec 2018 18:36:11 +0100 Subject: [PATCH] old data option --- home.admin/00mainMenu.sh | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index 32efd39..801ebdb 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -126,14 +126,26 @@ if [ ${setupState} -eq 0 ]; then # check data from boostrap # TODO: when olddata --> CLEAN OR MANUAL-UPDATE-INFO + source /home/admin/raspiblitz.info + if [ "${state}" = "olddata" ]; then + # old data setup + BACKTITLE="RaspiBlitz - Manual Update" + TITLE="⚡ Found old RaspiBlitz Data on HDD ⚡" + MENU="\nChoose how to continue the manual update: \n " + OPTIONS+=(MANUAL "read how to recover your old funds" \ + DELETE "erase old data, keep blockchain, reboot" ) + HEIGHT=11 + else + # start setup + BACKTITLE="RaspiBlitz - Setup" + TITLE="⚡ Welcome to your RaspiBlitz ⚡" + MENU="\nChoose how you want to setup your RaspiBlitz: \n " + OPTIONS+=(BITCOIN "Setup BITCOIN and Lightning (DEFAULT)" \ + LITECOIN "Setup LITECOIN and Lightning (EXPERIMENTAL)" ) + HEIGHT=11 + fi + - # start setup - BACKTITLE="RaspiBlitz - Setup" - TITLE="⚡ Welcome to your RaspiBlitz ⚡" - MENU="\nChoose how you want to setup your RaspiBlitz: \n " - OPTIONS+=(BITCOIN "Setup BITCOIN and Lightning (DEFAULT)" \ - LITECOIN "Setup LITECOIN and Lightning (EXPERIMENTAL)" ) - HEIGHT=11 elif [ ${setupState} -lt 100 ]; then @@ -344,6 +356,16 @@ case $CHOICE in sudo shutdown now exit 0 ;; + MANUAL) + echo "PLEASE open in browser for more information:" + echo "https://github.com/rootzoll/raspiblitz#recover-your-coins-from-a-failing-raspiblitz" + exit 0 + ;; + DELETE) + sudo ./XXcleanHDD.sh + sudo shutdown -r now + exit 0 + ;; X) lncli -h echo "SUCH WOW come back with ./00mainMenu.sh"