From c6640242aebf8ac5a92cb5604f661a3e35cee07e Mon Sep 17 00:00:00 2001 From: ragnar Date: Wed, 16 Apr 2025 23:02:45 +0200 Subject: [PATCH] first push --- script/firebee_install_script.sh | 58 ++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 script/firebee_install_script.sh diff --git a/script/firebee_install_script.sh b/script/firebee_install_script.sh new file mode 100644 index 0000000..95cb2b2 --- /dev/null +++ b/script/firebee_install_script.sh @@ -0,0 +1,58 @@ +!#/bin/env bash +# +# firebee_setup_script.sh +# +# Version : 0.01 +# Author : Bernd Mueller + +# define some colors. Looks nicer :) +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +RESET='\033[0m' + +# make cursor blink and not blink. Not supported by MacOS +BLINK_ON="\e[?12h" +BLINK_OFF="\e[?12l" + +# clear screen before output +clear + +echo "" +echo -e " ${RED}**${RESET} ${YELLOW}FireBee Setup Script${RESET} ${RED}**${RESET}" +echo -e " ${YELLOW}==========================${RESET}" +echo "" +echo " This script will create a new setup for your FireBee." +echo " When it's finished, you can copy the content of DEST/* to you CompactFlash-Card" +echo "" +echo " This script relies on a working internet connection. So make sure you have" +echo " it working in first place." +echo "" +echo " What language do you want to install?" +echo -e "${BLINK_ON}" +read -p " Languages are: en, de, fr, es, it, nl, ru, cs : " LANG +echo -e "${BLINK_OFF}" +echo + +if [[ ${LANG} == "" ]]; then + echo "You didn't give any language. Going default with English" +elif [ ${LANG} == "en" ]; then + echo "Okay, using English" +elif [[ ${LANG} == "de" ]]; then + echo "Okay, using German" +elif [[ ${LANG} == "fr" ]]; then + echo "Okay, using French" +elif [[ ${LANG} == "es" ]]; then + echo "Okay, using Spanish" +elif [[ ${LANG} == "it" ]]; then + echo "Okay, using Italian" +elif [[ ${LANG} == "nl" ]]; then + echo "Okay, using Dutch" +elif [[ ${LANG} == "ru" ]]; then + echo "Okay, using Russian" +elif [[ ${LANG} == "cs" ]]; then + echo "Okay, using Czech" +else + echo -e "I'm sorry, Dave. I'm afraid I can't do \"${LANG}\"!" +fi