first push
This commit is contained in:
58
script/firebee_install_script.sh
Normal file
58
script/firebee_install_script.sh
Normal file
@@ -0,0 +1,58 @@
|
||||
!#/bin/env bash
|
||||
#
|
||||
# firebee_setup_script.sh
|
||||
#
|
||||
# Version : 0.01
|
||||
# Author : Bernd Mueller <rgnr@riseup.net>
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user