|
|
@ -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 |
|
|
|