You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
978 B

#!/bin/bash
6 years ago
source /home/admin/_version.info
source /home/admin/raspiblitz.info
6 years ago
source /mnt/hdd/raspiblitz.conf
6 years ago
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
6 years ago
height=6
6 years ago
width=42
6 years ago
6 years ago
#infoStr=" Waiting for Blockchain Sync\n Progress: ${syncProgress}% \n Please wait - this can take some time.\n ssh admin@${localIP} -> Password A"
6 years ago
title="Node is Syncing"
if [ ${#syncProgress} -lt 6 ]; then
syncProgress=" ${syncProgress}"
fi
if [ ${#scanProgress} -lt 6 ]; then
scanProgress=" ${scanProgress}"
fi
6 years ago
infoStr=" Blockchain Progress : ${syncProgress}%\n Lightning Progress : ${scanProgress}%\n Please wait - this can take some time"
adminStr="ssh admin@${localIP} ->Password A"
if [ "$USER" == "admin" ]; then
adminStr="Use CTRL+c to EXIT to Terminal"
fi
7 years ago
7 years ago
# display progress to user
6 years ago
dialog --title " ${title} " --backtitle "RaspiBlitz ${codeVersion} ${hostname} / ${network} / ${chain} / ${tempCelsius}°C" --infobox "${infoStr}\n ${adminStr}" ${height} ${width}