diff --git a/home.admin/_bootstrap.presync.sh b/home.admin/_bootstrap.presync.sh index 4fb32dc..122abcb 100644 --- a/home.admin/_bootstrap.presync.sh +++ b/home.admin/_bootstrap.presync.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "presync: background script started" >> $logFile + # This script runs on every start calles by boostrap.service # It makes sure that the system is configured like the # default values or as in the config. diff --git a/home.admin/_bootstrap.sh b/home.admin/_bootstrap.sh index be600d9..b8441b4 100644 --- a/home.admin/_bootstrap.sh +++ b/home.admin/_bootstrap.sh @@ -187,18 +187,11 @@ if [ ${hddIsAutoMounted} -eq 0 ]; then # check if pre-sync was already activated on last power-on #presyncActive=$(systemctl status bitcoind | grep -c 'could not be found') - #if [ ${presyncActive} -eq 1]; then - echo "starting pre-sync in background" >> $logFile - # starting in background, because this scripts is part of systemd - # so to change systemd needs to happen after delay in seperate process - /home/admin/_bootstrap.presync.sh & - #else - # echo "pre-sync is already active" >> $logFile - # # update info file - # echo "state=presync" > $infoFile - # echo "message='pre-sync active'" >> $infoFile - # echo "device=${hddDeviceName}" >> $infoFile - #fi + echo "starting pre-sync in background" >> $logFile + # starting in background, because this scripts is part of systemd + # so to change systemd needs to happen after delay in seperate process + /home/admin/_bootstrap.presync.sh & + echo "done" >> $logFile # after admin login, presync will be stoped and HDD unmounted exit 1