From 0e96ea767ee6b59ac6e8876f8c55b1f848792ed5 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 26 Jul 2020 13:16:06 +0200 Subject: [PATCH] migration keep HDD --- home.admin/config.scripts/blitz.migration.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/home.admin/config.scripts/blitz.migration.sh b/home.admin/config.scripts/blitz.migration.sh index 19d6d4031..8b2bbe133 100644 --- a/home.admin/config.scripts/blitz.migration.sh +++ b/home.admin/config.scripts/blitz.migration.sh @@ -278,14 +278,13 @@ if [ "$1" = "import-gui" ]; then # ask format for new HDD/SSD - OPTIONS=(EXT4 "Ext4 & 1 Partition (default)" \ - BTRFS "BTRFS & 3 Partitions (experimental)" - ) - + OPTIONS=() # check if HDD/SSD contains Bitcoin Blockchain if [ "${hddBlocksBitcoin}" == "1" ]; then - OPTIONS+=(CLEAN "Just clean HDD & use Blockchain") + OPTIONS+=(KEEP "Dont format & use Blockchain") fi + OPTIONS+=(EXT4 "Ext4 & 1 Partition (default)") + OPTIONS+=(BTRFS "BTRFS & 3 Partitions (experimental)") CHOICE=$(whiptail --clear --title "Formatting ${hddCandidate}" --menu "" 10 52 3 "${OPTIONS[@]}" 2>&1 >/dev/tty) clear @@ -306,9 +305,8 @@ if [ "$1" = "import-gui" ]; then exit 1 fi ;; - CLEAN) - echo "CLEAN HDD & Keep Blockchain" - sudo /home/admin/XXcleanHDD.sh + KEEP) + echo "Keep HDD & Blockchain" ;; *) echo "CANCEL"