#!/bin/bash # On target: cd /opt/BTC rm -rf BTC-0.4.1 umount -l /usr/src 2>/dev/null || true rm -rf /usr/src/DCOSNET-HASWELL-AVX2-LTO-cleanroom rm -rf logs/DCOSNET-HASWELL-AVX2-LTO # Upload the fixed BTC.sh from download/, then: mkdir -p BTC-0.4.1 cp BTC.sh BTC-0.4.1/ cd BTC-0.4.1 && chmod +x BTC.sh && echo "btc ready in /opt/BTC/BTC-0.4.1/" #./BTC.sh