#!/bin/bash
echo -ne "\e]0;Matt's Super Duper HDD/SSD Test-n-Wipe Script\a"
printf '\033[8;40;117t'
red='\033[0;31m'
green='\033[0;32m'
blue='\033[1;34m'
yellow='\033[1;33m'
nc='\033[0m'
printf "\033c"

exit_func(){
exit 0
}

wget http://184.154.112.130/scripts/ssd.sh >& /dev/null
wget http://184.154.112.130/scripts/hdd.sh >& /dev/null
chmod +x ssd.sh
chmod +x hdd.sh

echo
echo -e "                                   Matt's Super Duper HDD/SDD Test-n-Wipe Script!                                    "
echo -e "---------------------------------------------------------------------------------------------------------------------"
echo -e "                                    [S]SD             [H]DD              [E]xit                                      "
echo -e "---------------------------------------------------------------------------------------------------------------------"
echo -e "               ${red}Note: Make sure you are using the correct script for the type of drive being tested!${nc}       "
echo -e "---------------------------------------------------------------------------------------------------------------------"
echo -e "Select Option:" | tr '\n' ' '
read input

if [[ $input == "S" ]]; then
/bin/bash ssd.sh
elif [[ $input == "H" ]]; then
/bin/bash hdd.sh
elif [[ $input ==  "E" ]]; then
echo "Bye!"
exit_func
fi

