Christian Rotzoll
6 years ago
2 changed files with 15 additions and 4 deletions
@ -1,16 +1,23 @@ |
|||
#!/bin/bash |
|||
|
|||
source /home/admin/_version.info |
|||
source /home/admin/raspiblitz.info |
|||
source /mnt/hdd/raspiblitz.conf |
|||
|
|||
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh) |
|||
|
|||
height=6 |
|||
height=8 |
|||
width=52 |
|||
|
|||
#infoStr=" Waiting for Blockchain Sync\n Progress: ${syncProgress}% \n Please wait - this can take some time.\n ssh admin@${localIP} -> Password A" |
|||
infoStr=" Node is Syncing\n Blockchain Progress : ${scanProgress}%\n Lightning Progress : ${scanProgress}%\n Please wait - this can take some time\n ssh admin@${localIP} ->Password A" |
|||
title="Node is Syncing" |
|||
if [ ${#syncProgress} -lt 6 ]; then |
|||
syncProgress=" ${syncProgress}" |
|||
fi |
|||
if [ ${#scanProgress} -lt 6 ]; then |
|||
scanProgress=" ${scanProgress}" |
|||
fi |
|||
infoStr=" Blockchain Progress : ${syncProgress}%\n Lightning Progress : ${scanProgress}%\n Please wait - this can take some time\n ssh admin@${localIP} ->Password A" |
|||
|
|||
# display progress to user |
|||
temp=$(echo "scale=1; $(cat /sys/class/thermal/thermal_zone0/temp)/1000" | bc) |
|||
dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${hostname}) CPU: ${temp}°C" --infobox "${infoStr}" ${height} ${width} |
|||
dialog --title " ${title} " --backtitle "RaspiBlitz ${codeVersion} (${hostname}) / ${network} / ${chain} / CPU: ${tempCelsius}°C" --infobox "${infoStr}" ${height} ${width} |
Loading…
Reference in new issue