2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								#!/bin/bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								##################################################################################### 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#                                  ADS-B RECEIVER                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								##################################################################################### 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#                                                                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# This script is not meant to be executed directly.                                 # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# Instead execute install.sh to begin the installation process.                     # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#                                                                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#                                                                                   # 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# Copyright (c) 2015-2016 Joseph A. Prochazka                                       # 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								#                                                                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# Permission is hereby granted, free of charge, to any person obtaining a copy      # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# of this software and associated documentation files (the "Software"), to deal     # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# in the Software without restriction, including without limitation the rights      # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell         # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# copies of the Software, and to permit persons to whom the Software is             # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# furnished to do so, subject to the following conditions:                          # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#                                                                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# The above copyright notice and this permission notice shall be included in all    # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# copies or substantial portions of the Software.                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#                                                                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR        # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,          # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE       # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER            # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,     # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE     # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# SOFTWARE.                                                                         # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#                                                                                   # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## VARIABLES 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								PROJECTROOTDIRECTORY = " $PWD " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								BASHDIRECTORY = " $PROJECTROOTDIRECTORY /bash " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								BUILDDIRECTORY = " $PROJECTROOTDIRECTORY /build " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								FR24BUILDDIRECTORY = " $PROJECTROOTDIRECTORY /build/flightradar24 " 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-07 17:09:15 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## INCLUDE EXTERNAL SCRIPTS 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								source  $BASHDIRECTORY /variables.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								source  $BASHDIRECTORY /functions.sh
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## BEGIN SETUP 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								clear
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  -e " \n\e[91m  THE ADS-B RECIEVER PROJECT VERSION  $PROJECTVERSION " 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								echo  "" 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								echo  -e "\e[92m  Setting up the Flightradar24 feeder client..." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  -e "\e[93m----------------------------------------------------------------------------------------------------\e[96m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								whiptail --title "Flightradar24 Feeder Client Setup"  --yesno "The Flightradar24's feeder client can track flights within 200-400 miles and will automatically share data with Flightradar24. You can track flights directly off your device or via Flightradar24.com.\n\n  http://www.flightradar24.com/share-your-data\n\nContinue setup by installing the Flightradar24 feeder client?"  13  78 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								CONTINUESETUP = $? 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								if  [  $CONTINUESETUP  =  1  ] ;  then 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    # Setup has been halted by the user. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[91m  \e[5mINSTALLATION HALTED!\e[25m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "  Setup has been halted at the request of the user." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[93m----------------------------------------------------------------------------------------------------" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[92m  Flightradar24 feeder client setup halted.\e[39m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    read  -p "Press enter to continue..."  CONTINUE
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    exit  1 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								fi 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## CHECK FOR PREREQUISITE PACKAGES 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								echo  -e "\e[95m  Installing packages needed to build and fulfill dependencies...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  "" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								if  [ [  ` uname -m`  = =  "x86_64"  ] ] ;  then 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    if  [ [  ` lsb_release -si`  = =  "Debian"  ] ]  &&  [  $( dpkg --print-foreign-architectures $1  2>/dev/null |  grep -c "i386" )  -eq 0  ] ;  then 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  -e "\e[94m  Adding the i386 architecture...\e[97m" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        sudo dpkg --add-architecture i386
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  -e "\e[94m  Downloading latest package lists for enabled repositories and PPAs...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        sudo apt-get update
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage libc6:i386
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage libudev1:i386
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage zlib1g:i386
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage libusb-1.0-0:i386
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 17:07:21 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    CheckPackage libstdc++6:i386
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								else 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage libc6
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage libudev1
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage zlib1g
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage libusb-1.0-0
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    CheckPackage libstdc++6
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								CheckPackage wget
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## BEGIN INSTALLATION DEPENDING ON DEVICE ARCHITECTURE 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  -e "\e[95m  Begining the installation process...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# Create the flightradar24 build directory if it does not exist. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								if  [  ! -d $FR24BUILDDIRECTORY  ] ;  then 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[94m  Creating the Flightradar24 feeder client build directory...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    mkdir $FR24BUILDDIRECTORY 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  -e "\e[94m  Entering the Flightradar24 feeder client build directory...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								cd  $FR24BUILDDIRECTORY 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 16:26:33 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								if  [ [  ` uname -m`  = =  "armv7l"  ] ]  ||  [ [  ` uname -m`  = =  "armv6l"  ] ] ;  then 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 16:26:33 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ## ARM INSTALLATION 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    whiptail --title "Plane Finder ADS-B Client Setup Instructions"  --msgbox "This script will now download and execute the official Flightradar24 setup script. Follow the instructions provided and supply the required information when ask for by the script.\n\nOnce finished the ADS-B Receiver Project scripts will continue."  11  78 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[94m  Detected the device architecture as ARM...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[94m  Downloading the executing the Flightradar24 Pi24 installation script...\e[97m" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    sudo bash -c " $( wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh) " 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    echo  "" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								else 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ## I386 INSTALLATION 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    echo  -e "\e[94m  Detected the device architecture as I386...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[94m  Downloading the Flightradar24 feeder client package...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    wget http://feed.flightradar24.com/linux/fr24feed_${ FR24CLIENTVERSIONI386 } _i386.deb -O $FR24BUILDDIRECTORY /fr24feed_${ FR24CLIENTVERSIONI386 } _i386.deb
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[94m  Installing the Flightradar24 feeder client package...\e[97m" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    if  [ [  ` lsb_release -si`  = =  "Debian"  ] ] ;  then 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        # Force architecture if this is Debian. 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  -e "\e[94m  NOTE: dpkg executed with added flag --force-architecture.\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        sudo dpkg -i --force-architecture $FR24BUILDDIRECTORY /fr24feed_${ FR24CLIENTVERSIONI386 } _i386.deb
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    else 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        sudo dpkg -i $FR24BUILDDIRECTORY /fr24feed_${ FR24CLIENTVERSIONI386 } _i386.deb
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    fi 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    echo  -e "\e[94m  Checking that the fr24feed package was installed properly...\e[97m" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    if  [  $( dpkg-query -W -f= '${STATUS}'  fr24feed 2>/dev/null |  grep -c "ok installed" )  -eq 0  ] ;  then 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        # If the fr24feed package could not be installed halt setup. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  -e "\e[91m  \e[5mINSTALLATION HALTED!\e[25m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  -e "  UNABLE TO INSTALL A REQUIRED PACKAGE." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  -e "  SETUP HAS BEEN TERMINATED!" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  -e "\e[93mThe package \"fr24feed\" could not be installed.\e[39m" 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        echo  -e "\e[93m----------------------------------------------------------------------------------------------------" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  -e "\e[92m  Flightradar24 feeder client setup halted.\e[39m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        read  -p "Press enter to continue..."  CONTINUE
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        exit  1 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-07 16:44:26 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								fi 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## FLIGHTRADAR24 FEEDER CLIENT SETUP COMPLETE 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# Enter into the project root directory. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  -e "\e[94m  Entering the ADS-B Receiver Project root directory...\e[97m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								cd  $PROJECTROOTDIRECTORY 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								echo  "" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  -e "\e[93m-------------------------------------------------------------------------------------------------------" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  -e "\e[92m  Flightradar24 feeder client setup is complete.\e[39m" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								echo  "" 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-12 13:36:46 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								read  -p "Press enter to continue..."  CONTINUE
							 
						 
					
						
							
								
									
										
										
										
											2016-09-06 20:19:14 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								exit  0