ok i made some changes to the last script from pjcltd for the new update
the script will also remove all addnode lines and add the nodes from dev post to the config file and download the blockchain from dev post.
please read more here:
https://bitcointalksearch.org/topic/m.15885081note: i was not able to download the chain from dropbox (see the dev post above) with wget so i uploaded the chain to my google drive.
you can change the wget lines if you don't trust my files#!/bin/bash
echo "Stopping darknet"
./darknet-cli stop
echo "Removing old Version"
rm darknetd
rm darknet-cli
sleep 90
echo " Removing old blockchain data "
cd
cd .darknet
rm -R blocks chainstate db.log fee_estimates.dat mncache.dat peers.dat mnpayments.dat debug.log budget.dat backups darknetd.pid database
sed -i.bak '/addnode/d' ~/.darknet/darknet.conf
echo 'addnode=72.49.184.206' >> ~/.darknet/darknet.conf
echo 'addnode=68.227.30.210' >> ~/.darknet/darknet.conf
echo 'addnode=74.118.192.18' >> ~/.darknet/darknet.conf
echo 'addnode=138.68.50.249' >> ~/.darknet/darknet.conf
echo 'addnode=173.245.157.244' >> ~/.darknet/darknet.conf
echo 'addnode=173.245.158.8' >> ~/.darknet/darknet.conf
echo 'addnode=coin-server.com' >> ~/.darknet/darknet.conf
echo 'addnode=24.119.187.242' >> ~/.darknet/darknet.conf
wget -O darknet.zip
https://doc-0s-1k-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/kh7r01tkfoc67nqbr3orghq58nkn7v6h/1470909600000/11974072493119325818/*/0B_Egj11irGZyem5ld0VHSUo3Z00?e=download
unzip darknet.zip -d ~/.darknet
rm -R darknet.zip
cd
echo "Downloading new version"
wget
https://github.com/Darknet-Crypto/Darknet/releases/download/v2.0.2.0/darknet-cliwget
https://github.com/Darknet-Crypto/Darknet/releases/download/v2.0.2.0/darknetdecho "setting permissions"
chmod +x darknet*
echo "Starting Darket damon"
./darknetd
sleep 120
echo "Starting Masternode"
./darknet-cli getinfo
sleep 10
./darknet-cli masternode start
echo "all done "
happy updating