#!/bin/bash # usmartnodeprivkey.sh # Get a new privatekey by going to console >> debug and typing smartnode genkey printf "SmartNode GenKey: " read _nodePrivateKey cd && cd .smartcash sed -i "s/^\(smartnodeprivkey\s*=\s*\).*\$/\1$_nodePrivateKey/" smartcash.conf smartcash-cli stop sleep 20 smartcashd