From a6e77ea265272eee071ef4d47b79747d297e5478 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 30 Jul 2019 02:33:02 +0200 Subject: [PATCH] #685 improved RESET-HDD --- home.admin/XXcleanHDD.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/home.admin/XXcleanHDD.sh b/home.admin/XXcleanHDD.sh index f87c552..c1fe75c 100755 --- a/home.admin/XXcleanHDD.sh +++ b/home.admin/XXcleanHDD.sh @@ -64,7 +64,7 @@ else read key echo "stopping services ... (please wait)" - + echo "- swap" sudo dphys-swapfile swapoff @@ -82,15 +82,18 @@ else echo "selective delete ... (please wait)" # bitcoin mainnet (clean working files) - sudo rm -f /mnt/hdd/bitcoin/*.* + sudo rm -f /mnt/hdd/bitcoin/* 2>/dev/null + sudo rm -f /mnt/hdd/bitcoin/.* sudo rm -f -r /mnt/hdd/bitcoin/database # bitcoin testnet (clean working files) - sudo rm -f /mnt/hdd/bitcoin/testnet3/*.* + sudo rm -f /mnt/hdd/bitcoin/testnet3/* 2>/dev/null + sudo rm -f /mnt/hdd/bitcoin/testnet3/.* sudo rm -f -r /mnt/hdd/bitcoin/testnet/database # litecoin mainnet (clean working files) - sudo rm -f /mnt/hdd/litecoin/*.* + sudo rm -f /mnt/hdd/litecoin/* 2>/dev/null + sudo rm -f /mnt/hdd/litecoin/.* sudo rm -f -r /mnt/hdd/litecoin/database # lnd (delet all)