mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-12-19 20:25:25 +01:00
chenged presync active detection
This commit is contained in:
@@ -186,8 +186,8 @@ if [ ${hddIsAutoMounted} -eq 0 ]; then
|
|||||||
echo "Found pre-loaded blockchain" >> $logFile
|
echo "Found pre-loaded blockchain" >> $logFile
|
||||||
|
|
||||||
# check if pre-sync was already activated on last power-on
|
# check if pre-sync was already activated on last power-on
|
||||||
presyncActive=$(ls /etc/systemd/system/bitcoind.service | grep -c '.service')
|
presyncActive=$(systemctl status bitcoind | grep -c 'could not be found')
|
||||||
if [ ${presyncActive} -eq 0]; then
|
if [ ${presyncActive} -eq 1]; then
|
||||||
echo "starting pre-sync in background" >> $logFile
|
echo "starting pre-sync in background" >> $logFile
|
||||||
# starting in background, because this scripts is part of systemd
|
# starting in background, because this scripts is part of systemd
|
||||||
# so to change systemd needs to happen after delay in seperate process
|
# so to change systemd needs to happen after delay in seperate process
|
||||||
|
|||||||
Reference in New Issue
Block a user