From 8105d5e915892a0c7254850bc58cc1d222dda061 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 2 Aug 2020 20:20:32 +0200 Subject: [PATCH] improbe HDD containg blockchain --- home.admin/30initHDD.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home.admin/30initHDD.sh b/home.admin/30initHDD.sh index 477281413..4151aa6c8 100755 --- a/home.admin/30initHDD.sh +++ b/home.admin/30initHDD.sh @@ -34,7 +34,7 @@ fi # check if there is a HDD connectecd to use as data drive echo "hddCandidate=${hddCandidate}" if [ ${#hddCandidate} -eq 0 ]; then - echo "# FAIL please cnnect a HDD and call ./30initHDD.sh again" + echo "# FAIL please connect a HDD and call ./30initHDD.sh again" exit 1 fi echo "OK" @@ -72,10 +72,11 @@ echo "# hddGotBlockchain=${hddGotBlockchain}" raidSizeGB=$(echo "${raidCandidate[0]}" | cut -d " " -f 2) echo "# raidCandidates=${raidCandidates}" echo "# raidSizeGB=${raidSizeGB}" -if [ ${hddGotBlockchain} -eq 0 ]; then +if [ "${hddGotBlockchain}" == "" ] || [ ${hddGotBlockchain} -eq 0 ]; then + + format="ext4" # test feature: if there is a USB stick as a raid connected, then format in BTRFS an not in EXT4 - format="ext4" if [ ${raidCandidates} -eq 1 ] && [ ${raidSizeGB} -gt 14 ]; then echo