kopia lustrzana https://github.com/jprochazka/adsb-receiver
Now asks if dump1090 should be reinstalled.
rodzic
d79ef0cbbd
commit
86c3ed4fcb
14
install.sh
14
install.sh
|
|
@ -212,7 +212,12 @@ EOF
|
|||
|
||||
# Message displayed if dump1090-mutability is installed.
|
||||
read -d '' DUMP1090INSTALLED <<"EOF"
|
||||
The dump1090-mutability package appears to be installed on your system. Mode S decoder setup will be skipped.
|
||||
The dump1090-mutability package appears to be installed on your device.
|
||||
|
||||
However...
|
||||
The dump1090-mutability source code is updated regularly without a change made to the version numbering. In order to insure you are running the latest version of dump1090-mutability you may opt to rebuild and reinstall this package.
|
||||
|
||||
Do you wish to download, build, and reinstall this package?
|
||||
EOF
|
||||
|
||||
# Message displayed if dump1090-mutability is not installed.
|
||||
|
|
@ -285,8 +290,11 @@ DUMP1090CHOICE=1
|
|||
# Check if the dump1090-mutability package is installed.
|
||||
if [ $(dpkg-query -W -f='${STATUS}' dump1090-mutability 2>/dev/null | grep -c "ok installed") -eq 1 ]; then
|
||||
# The dump1090-mutability package appear to be installed.
|
||||
# A version check will be added here as well at a later date to enable upgrades.
|
||||
whiptail --backtitle "$BACKTITLE" --title "Dump1090-mutability Installed" --msgbox "$DUMP1090INSTALLED" 10 65
|
||||
whiptail --backtitle "$BACKTITLE" --title "Dump1090-mutability Installed" --yesno "$DUMP1090INSTALLED" 10 65
|
||||
DUMP1090REINSTALL=$?
|
||||
if [ $DUMP1090REINSTALL = 1 ]; then
|
||||
DUMP1090CHOICE=0
|
||||
fi
|
||||
else
|
||||
whiptail --backtitle "$BACKTITLE" --title "Dump1090-mutability Not Installed" --yesno "$DUMP1090NOTINSTALLED" 10 65
|
||||
DUMP1090CHOICE=$?
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue