raspiblitz/home.admin/setup.scripts/dialogRecovery.sh

24 lines
874 B
Bash
Raw Normal View History

2021-05-21 17:57:40 -05:00
#!/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.
2021-05-22 13:00:07 -05:00
You can now start RECOVERY to freshly build your system based on existing configuration & data. This process is often used to repair broken features or clean the system up.
2021-05-21 17:57:40 -05:00
2021-05-22 13:01:17 -05:00
You will need to set a new Password A for the SSH login. All other passwords will stay the same and channels will stay open.
2021-05-21 17:57:40 -05:00
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?
2021-05-22 13:00:07 -05:00
" 20 68
2021-05-21 17:57:40 -05:00
2021-05-21 20:23:26 -05:00
if [ "$?" == "0" ]; then
# 0 --> run recover
exit 0
else
# 1 --> other options
exit 1
fi