mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 12:10:33 +02:00
_commands: status command for parallel chains
This commit is contained in:
@@ -126,7 +126,23 @@ function torthistx() {
|
||||
# start the status screen in the terminal
|
||||
function status() {
|
||||
echo "Gathering data - please wait a moment..."
|
||||
sudo -u pi /home/admin/00infoLCD.sh --pause 0
|
||||
while :
|
||||
do
|
||||
# show the same info as on LCD screen
|
||||
/home/admin/00infoBlitz.sh $1 $2
|
||||
# wait 6 seconds for user exiting loop
|
||||
echo ""
|
||||
echo -en "Screen is updating in a loop .... press 'x' now to get back to menu."
|
||||
read -n 1 -t 6 keyPressed
|
||||
echo -en "\rGathering information to update info ... please wait. \n"
|
||||
# check if user wants to abort session
|
||||
if [ "${keyPressed}" = "x" ]; then
|
||||
echo
|
||||
echo "Returning to menu ....."
|
||||
sleep 4
|
||||
break
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# command: lnbalance
|
||||
|
Reference in New Issue
Block a user