You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
751 B

#!/bin/bash
# get raspiblitz config
source /home/admin/raspiblitz.info
source /mnt/hdd/raspiblitz.conf
# Basic Options
OPTIONS=(HARDWARE "Run Hardwaretest" \
SOFTWARE "Run Softwaretest (DebugReport)" \
BLOCKCHAIN "Redownload Blockchain" \
CLEANHDD "Delete Data - keep Blockchain"
)
CHOICE=$(whiptail --clear --title "Repair Options" --menu "" 12 60 5 "${OPTIONS[@]}" 2>&1 >/dev/tty)
clear
case $CHOICE in
HARDWARE)
sudo ./05hardwareTest.sh
./00mainMenu.sh
;;
SOFTWARE)
sudo ./XXdebugLogs.sh
echo "Press ENTER to return to main menu."
read key
./00mainMenu.sh
;;
BLOCKCHAIN)
./XXcleanHDD.sh -blockchain
exit 1;
;;
CLEANHDD)
./XXcleanHDD.sh
exit 1;
;;
esac