From cfa2e2c6d1d134f0bfbb77daca777d52b7b018a2 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Fri, 21 May 2021 17:57:40 -0500 Subject: [PATCH] recover dialog --- home.admin/setup.scripts/dialogRecovery.sh | 19 +++++++++++++++++++ .../setup.scripts/setupDialogControl.sh | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 home.admin/setup.scripts/dialogRecovery.sh diff --git a/home.admin/setup.scripts/dialogRecovery.sh b/home.admin/setup.scripts/dialogRecovery.sh new file mode 100644 index 000000000..ad236fddf --- /dev/null +++ b/home.admin/setup.scripts/dialogRecovery.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# get basic system information +# these are the same set of infos the WebGUI dialog/controler has +source /home/admin/raspiblitz.info + +whiptail --title " RASPIBLITZ RECOVERY " --yes-button "Start Recovery" --no-button "Other Options" --yesno "We found data from an existing RaspiBlitz on your HDD/SSD. + +You can start RECOVERY now to freshly build your system to this old configuration. This process is often used to repair broken features or clean the system up. + +You will need to set a new Password A for the SSH login. All your channels will stay open and other passwords will stay the same. + +Please make sure to have your seed words & static channel backup file (just in case). + +Do you want to start RECOVERY of your RaspiBlitz now? + " 18 65 + +result=$? +echo "result($result)" \ No newline at end of file diff --git a/home.admin/setup.scripts/setupDialogControl.sh b/home.admin/setup.scripts/setupDialogControl.sh index 0ec32481a..82e657013 100755 --- a/home.admin/setup.scripts/setupDialogControl.sh +++ b/home.admin/setup.scripts/setupDialogControl.sh @@ -35,7 +35,7 @@ fi # QuickOption: Recovery if [ "${setupPhase}" == "recovery" ]; then - echo "TODO: Update" + echo "TODO: RECOVERY" exit 1 # on cancel - default to normal setup