|
@ -123,6 +123,19 @@ fi #end - when bitcoin is running |
|
|
mountOK=$( sudo cat /etc/fstab | grep -c '/mnt/hdd' ) |
|
|
mountOK=$( sudo cat /etc/fstab | grep -c '/mnt/hdd' ) |
|
|
if [ ${mountOK} -eq 1 ]; then |
|
|
if [ ${mountOK} -eq 1 ]; then |
|
|
|
|
|
|
|
|
|
|
|
# FAILSAFE: check if raspiblitz.conf is available |
|
|
|
|
|
configExists=$(ls /mnt/hdd/raspiblitz.conf | grep -c '.conf') |
|
|
|
|
|
if [ ${configExists} -eq 0 ]; then |
|
|
|
|
|
echo "" |
|
|
|
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
|
|
|
|
|
echo "FAIL: /mnt/hdd/raspiblitz.conf should exists at this point, but not found!" |
|
|
|
|
|
echo "Please report to: https://github.com/rootzoll/raspiblitz/issues/293" |
|
|
|
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
|
|
|
|
|
echo "Press ENTER to EXIT." |
|
|
|
|
|
read key |
|
|
|
|
|
exit 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# are there any signs of blockchain data and activity |
|
|
# are there any signs of blockchain data and activity |
|
|
# setup running with admin user, but has no permission to read /mnt/hdd/bitcoin/blocks/, sudo needed |
|
|
# setup running with admin user, but has no permission to read /mnt/hdd/bitcoin/blocks/, sudo needed |
|
|
blockchainDataExists=$(sudo ls /mnt/hdd/${network}/blocks/blk00000.dat 2>/dev/null | grep -c '.dat') |
|
|
blockchainDataExists=$(sudo ls /mnt/hdd/${network}/blocks/blk00000.dat 2>/dev/null | grep -c '.dat') |
|
|