mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
parent
cf1df21a6f
commit
f55ef057ba
@ -282,8 +282,9 @@ else
|
||||
fi
|
||||
|
||||
# show JoinMarket stats in place of the LND URI only if the Yield Generator is running
|
||||
source /home/joinmarket/joinin.conf
|
||||
if [ $(sudo -u joinmarket pgrep -f "python yg-privacyenhanced.py $YGwallet --wallet-password-stdin" 2>/dev/null | wc -l) -gt 2 ]; then
|
||||
|
||||
source /home/joinmarket/joinin.conf 2>/dev/null
|
||||
if [ "${joinmarket}" = "on" ] && [ $(sudo -u joinmarket pgrep -f "python yg-privacyenhanced.py $YGwallet --wallet-password-stdin" 2>/dev/null | wc -l) -gt 2 ]; then
|
||||
JMstats=$(mktemp 2>/dev/null)
|
||||
sudo -u joinmarket /home/joinmarket/info.stats.sh > $JMstats
|
||||
JMstatsL1=$(sed -n 1p < "$JMstats")
|
||||
@ -297,10 +298,10 @@ ${color_gray} ║║║║ ${color_gray}$JMstatsL2
|
||||
${color_gray} ╚╝╩ ╩ ${color_gray}$JMstatsL3
|
||||
${color_gray} ◎=◎=◎=◎=◎ ${color_gray}$JMstatsL4"
|
||||
else
|
||||
lastLine="\
|
||||
lastLine="\
|
||||
${color_yellow}
|
||||
${color_yellow}${ln_publicColor}${ln_external}${color_gray}"
|
||||
fi
|
||||
fi
|
||||
|
||||
sleep 5
|
||||
|
||||
|
@ -85,8 +85,8 @@ while :
|
||||
#
|
||||
isHeadless=$(cat "${configFile}" 2>/dev/null | grep -Ec "headless=1|headless=on")
|
||||
if [ ${isHeadless} -gt 0 ]; then
|
||||
echo "*** headless=on sleeping 600 seconds ***" | systemd-cat
|
||||
sleep 600
|
||||
echo "*** headless=on sleeping 60 seconds ***" | systemd-cat
|
||||
sleep 60
|
||||
fi
|
||||
|
||||
###########################
|
||||
|
Loading…
Reference in New Issue
Block a user