Fix test in main.sh so that if dump1090 is not installed the user is prompted so select a fork

pull/289/head
romeo-golf 2017-01-15 15:38:25 +00:00
rodzic 982c19115f
commit 9aaaaffc82
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -214,7 +214,7 @@ if [ $(dpkg-query -W -f='${STATUS}' dump1090-fa 2>/dev/null | grep -c "ok instal
fi
# If no dump1090 fork is installed and this is not an automated installation ask the user which one to install.
if [ "$DUMP1090_INSTALLED" = "false" ] && [ "$RECEIVER_AUTOMATED_INSTALL" = "false" ] ; then
if [ ! "$DUMP1090_INSTALLED" = "true" ] && [ "$RECEIVER_AUTOMATED_INSTALL" = "false" ] ; then
whiptail --backtitle "$RECEIVER_PROJECT_TITLE" --title "Choose Dump1090 Version To Install" --menu "The dump1090-mutability or dump1090-fa package does not appear to be installed on this device. In order to continue setup one of these two packages need to be installed. Please select your prefered dump1090 version from the list below.\n\nPlease note that in order to run dump1090-fa PiAware will need to be installed as well." 16 65 2 "dump1090-mutability" "(Mutability)" "dump1090-fa" "(FlightAware)"
case $? in
"dump1090-mutability") DUMP1090_FORK="mutability" ;;