mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
#707 add UPS info to device status
This commit is contained in:
parent
448de4193f
commit
e97cf07086
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,12 @@ fi
|
|||
uptime=$(awk '{printf("%d\n",$1 + 0.5)}' /proc/uptime)
|
||||
echo "uptime=${uptime}"
|
||||
|
||||
# get UPS info (if configured)
|
||||
if [ ${#ups} -gt 0 ]; then
|
||||
source /home/admin/config.scripts/blitz.ups.sh status
|
||||
echo "upsStatus=${upsStatus}"
|
||||
fi
|
||||
|
||||
# count restarts of bitcoind/litecoind
|
||||
startcountBlockchain=$(cat /home/admin/systemd.blockchain.log 2>/dev/null | grep -c "STARTED")
|
||||
echo "startcountBlockchain=${startcountBlockchain}"
|
||||
|
|
Loading…
Add table
Reference in a new issue