diff --git a/home.admin/98repairMenu.sh b/home.admin/98repairMenu.sh index cd6e2245a..0aa379c53 100755 --- a/home.admin/98repairMenu.sh +++ b/home.admin/98repairMenu.sh @@ -46,19 +46,20 @@ RaspiBlitz image to your SD card. " 12 40 } -# Basic Options -#OPTIONS=(HARDWARE "Run Hardwaretest" \ -OPTIONS=(SOFTWARE "Run Softwaretest (DebugReport)" \ - BACKUP-LND "Backup your LND data (Rescue-File)" \ - MIGRATION "Migrate Blitz Data to new Hardware" \ - COPY-SOURCE "Copy Blockchain Source Modus" \ - RESET-CHAIN "Delete Blockchain & Re-Download" \ - RESET-LND "Delete LND & start new node/wallet" \ - RESET-HDD "Delete HDD Data but keep Blockchain" \ - RESET-ALL "Delete HDD completely to start fresh" \ - DELETE-ELEC "Delete Electrum Index" \ - DELETE-INDEX "Delete Bitcoin Transaction-Index" - ) +OPTIONS=() +#OPTIONS+=(HARDWARE "Run Hardwaretest") +OPTIONS+=(SOFTWARE "Run Softwaretest (DebugReport)") +if [ "${lightning}" == "lnd" ] || [ "${lnd}" == "on" ]; then + OPTIONS+=(BACKUP-LND "Backup your LND data (Rescue-File)") + OPTIONS+=(RESET-LND "Delete LND & start new node/wallet") +fi +OPTIONS+=(MIGRATION "Migrate Blitz Data to new Hardware") +OPTIONS+=(COPY-SOURCE "Copy Blockchain Source Modus") +OPTIONS+=(RESET-CHAIN "Delete Blockchain & Re-Download") +OPTIONS+=(RESET-HDD "Delete HDD Data but keep Blockchain") +OPTIONS+=(RESET-ALL "Delete HDD completely to start fresh") +OPTIONS=(DELETE-ELEC "Delete Electrum Index") +OPTIONS=(DELETE-INDEX "Delete Bitcoin Transaction-Index") CHOICE=$(whiptail --clear --title "Repair Options" --menu "" 18 62 11 "${OPTIONS[@]}" 2>&1 >/dev/tty)