You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1020 B

6 years ago
#!/bin/bash
6 years ago
## get basic info
source /home/admin/raspiblitz.info 2>/dev/null
6 years ago
6 years ago
# only show warning when bitcoin
if [ "$network" = "bitcoin" ]; then
6 years ago
msg=" The RaspberryPi has very limited CPU power.\n"
msg="$msg To sync & validate the complete blockchain\n"
msg="$msg can take multiple days - even weeks!\n"
msg="$msg Its recommended to use another option.\n"
6 years ago
msg="$msg \n"
msg="$msg So do you really want start syncing now?"
6 years ago
dialog --title " WARNING " --yesno "${msg}" 11 57
6 years ago
response=$?
case $response in
0) echo "--> OK";;
1) ./10setupBlitz.sh; exit 1;;
255) ./10setupBlitz.sh; exit 1;;
esac
clear
echo "********************************"
echo "This is madness. This is Sparta!"
echo "********************************"
echo ""
sleep 3
6 years ago
fi
6 years ago
echo "*** Activating Blockain Sync ***"
6 years ago
sudo mkdir /mnt/hdd/${network}
6 years ago
echo "OK - sync is activated"
# set SetupState
sudo sed -i "s/^setupStep=.*/setupStep=50/g" /home/admin/raspiblitz.info
6 years ago
# continue setup
./60finishHDD.sh