Browse Source

updated dialogs

v1.1
Christian Rotzoll 6 years ago
parent
commit
3a9943fe81
  1. 12
      home.admin/00mainMenu.sh
  2. 1
      home.admin/config.scripts/lnd.rescue.sh

12
home.admin/00mainMenu.sh

@ -153,31 +153,31 @@ https://github.com/rootzoll/raspiblitz/blob/master/FAQ.md
The RaspiBlitz will now try to help you on with the repair.
Maybe use BACKUP option first to secure your funds & channels.
" 13 52
" 13 65
clear
# Basic Options
OPTIONS=(TORRENT "Redownload Prepared Torrent (DEFAULT)" \
COPY "Copy Blockchain from another Computer (SKILLED)" \
COPY "Copy from another Computer (SKILLED)" \
REINDEX "Resync thru ${network}d (TAKES VERY VERY LONG)" \
BACKUP "Run Backup LND data first (optional)"
)
CHOICE=$(dialog --backtitle "RaspiBlitz - Repair Script" --clear --title "Who to repair blockchain?" --menu "test" 11 60 6 "${OPTIONS[@]}" 2>&1 >/dev/tty)
CHOICE=$(dialog --backtitle "RaspiBlitz - Repair Script" --clear --title "Repair Blockchain Data" --menu "Choose a repair/recovery option:" 11 60 6 "${OPTIONS[@]}" 2>&1 >/dev/tty)
clear
if [ "${CHOICE}" = "TORRENT" ]; then
echo "Starting TORRENT ..."
sudo sed -i "s/^state=.*/state=retorrent/g" /home/admin/raspiblitz.info
/home/admin/50torrentHDD.sh
raspiblitz
/home/admin/00mainMenu.sh
exit
elif [ "${CHOICE}" = "COPY" ]; then
echo "Starting COPY ..."
sudo sed -i "s/^state=.*/state=recopy/g" /home/admin/raspiblitz.info
/home/admin/50copyHDD.sh
raspiblitz
/home/admin/00mainMenu.sh
exit
elif [ "${CHOICE}" = "REINDEX" ]; then
@ -189,7 +189,7 @@ Maybe use BACKUP option first to secure your funds & channels.
sudo /home/admin/config.scripts/lnd.rescue.sh backup
echo "PRESS ENTER to return to menu."
read key
raspiblitz
/home/admin/00mainMenu.sh
exit
else

1
home.admin/config.scripts/lnd.rescue.sh

@ -34,6 +34,7 @@ if [ ${mode} = "backup" ]; then
mv /home/admin/lnd-rescue.tar.gz /home/admin/lnd-rescue-${md5checksum}.tar.gz
# offer SCP for download
echo
echo "****************************"
echo "* DOWNLOAD THE BACKUP FILE *"
echo "****************************"

Loading…
Cancel
Save