From be2f161db2376dfc1235d0a288a814c9331a8285 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Fri, 30 Nov 2018 13:14:27 +0100 Subject: [PATCH] added autopilot precheck --- home.admin/BBcloseAllChannels.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home.admin/BBcloseAllChannels.sh b/home.admin/BBcloseAllChannels.sh index 99fe0f9..57f2f8a 100755 --- a/home.admin/BBcloseAllChannels.sh +++ b/home.admin/BBcloseAllChannels.sh @@ -1,5 +1,13 @@ #!/bin/bash +source /mnt/hdd/raspiblitz.conf +if [ "${autoPilot}" = "on" ]; then + echo "PRECHECK: You need to turn OFF the AutoPilot first," + echo "so that closed channels are not opening up again." + echo "You find the AutoPilot under the SERVICES section." + exit 1 +fi + # load network and chain info network=`cat .network` chain=$(${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')