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
1008 B

6 years ago
#!/bin/bash
7 years ago
## get basic info
source /home/admin/raspiblitz.info
7 years ago
7 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"
7 years ago
msg="$msg \n"
msg="$msg So do you really want start syncing now?"
7 years ago
dialog --title " WARNING " --yesno "${msg}" 11 57
7 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
7 years ago
fi
7 years ago
echo "*** Activating Blockain Sync ***"
7 years ago
sudo mkdir /mnt/hdd/${network}
7 years ago
echo "OK - sync is activated"
# set SetupState
sudo sed -i "s/^setupStep=.*/setupStep=50/g" /home/admin/raspiblitz.info
7 years ago
# continue setup
./60finishHDD.sh