From a025d0e1b97bc2880ab20527897b73684cce24cd Mon Sep 17 00:00:00 2001 From: romeo-golf Date: Thu, 9 Feb 2017 18:51:52 +0000 Subject: [PATCH] Dump1090-mutability - Fix to ensure the dpkg question is prempted before installing the deb package --- bash/decoders/dump1090-mutability.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bash/decoders/dump1090-mutability.sh b/bash/decoders/dump1090-mutability.sh index ac1a6cd..fcb3930 100755 --- a/bash/decoders/dump1090-mutability.sh +++ b/bash/decoders/dump1090-mutability.sh @@ -140,14 +140,6 @@ echo -e "\e[94m Building the dump1090-mutability package...\e[97m" echo -e "" dpkg-buildpackage -b 2>&1 -# Install the deb binary package. -echo -e "" -echo -e "\e[94m Entering the ADS-B Receiver Project build directory...\e[97m" -cd ${RECEIVER_BUILD_DIRECTORY}/dump1090 2>&1 -echo -e "\e[94m Installing the dump1090-mutability package...\e[97m" -echo -e "" -sudo dpkg -i dump1090-mutability_1.15~dev_*.deb 2>&1 - # Prempt the dpkg question asking if the user would like dump1090 to start automatically. if [[ ! "`sudo debconf-get-selections 2>/dev/null | grep "dump1090-mutability/auto-start" | awk '{print $4}'`" = "true" ]] ; then echo -e "" @@ -156,6 +148,14 @@ if [[ ! "`sudo debconf-get-selections 2>/dev/null | grep "dump1090-mutability/au echo -e "" fi +# Install the deb binary package. +echo -e "" +echo -e "\e[94m Entering the ADS-B Receiver Project build directory...\e[97m" +cd ${RECEIVER_BUILD_DIRECTORY}/dump1090 2>&1 +echo -e "\e[94m Installing the dump1090-mutability package...\e[97m" +echo -e "" +sudo dpkg -i dump1090-mutability_1.15~dev_*.deb 2>&1 + # Check that the package was installed. echo -e "" echo -e "\e[94m Checking that the dump1090-mutability package was installed properly...\e[97m"