mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 18:37:41 +01:00
press x to stop monitoring
This commit is contained in:
@@ -48,11 +48,20 @@ while [ ${finished} -eq 0 ]
|
|||||||
echo "REINDEXING BLOCKCHAIN"
|
echo "REINDEXING BLOCKCHAIN"
|
||||||
echo "*************************"
|
echo "*************************"
|
||||||
echo "THIS CAN TAKE SOME LONG TIME"
|
echo "THIS CAN TAKE SOME LONG TIME"
|
||||||
echo "If you dont see any progress after 24h press X to stop."
|
echo "If you dont see any progress after 24h keep X pressed to stop."
|
||||||
|
|
||||||
#TODO: detect and display progress
|
#TODO: detect and display progress
|
||||||
#TODO: determine when finished and then finished=1
|
#TODO: determine when finished and then finished=1
|
||||||
|
|
||||||
|
# wait 2 seconds for key input
|
||||||
|
read -n 1 -t 2 keyPressed
|
||||||
|
|
||||||
|
# check if user wants to abort monitor
|
||||||
|
if [ "${keyPressed}" = "x" ]; then
|
||||||
|
echo "stopped by user ..."
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# trigger reboot when finished
|
# trigger reboot when finished
|
||||||
|
|||||||
Reference in New Issue
Block a user