kopia lustrzana https://github.com/jprochazka/adsb-receiver
Flipped around [Y/n] options.
rodzic
9562cd9618
commit
da9a0ceead
|
@ -157,10 +157,10 @@ echo "from the website http://www.heywhatsthat.com. Some work will be required o
|
|||
echo "part including visiting http://www.heywhatsthat.com and generating a new"
|
||||
echo "panorama set to your location."
|
||||
echo -e "\033[37m"
|
||||
read -p "Do you wish to add terrain limit rings to the dump1090 map?" ADDTERRAINRINGS
|
||||
read -p "Do you wish to add terrain limit rings to the dump1090 map? [Y/n] " ADDTERRAINRINGS
|
||||
|
||||
if [[ $ADDTERRAINRINGS =~ ^[Yy]$ ]]; then
|
||||
echo -e "\033[33m"
|
||||
if [[ ! $ADDTERRAINRINGS =~ ^[Nn]$ ]]; then
|
||||
echo -e "\033[31m"
|
||||
echo "READ THE FOLLOWING INSTRUCTION CAREFULLY!"
|
||||
echo ""
|
||||
echo -e "\033[33m"
|
||||
|
@ -189,7 +189,7 @@ if [[ $ADDTERRAINRINGS =~ ^[Yy]$ ]]; then
|
|||
echo -e "\033[33m"
|
||||
echo "Downloading JSON data pertaining to the panorama ID you supplied..."
|
||||
echo -e "\033[37m"
|
||||
sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json 'http://www.heywhatsthat.com/api/upintheair.json?view=${HEYWHATSTHATVIEWID}&refraction=0.25&alts=3048,12192'
|
||||
sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json http://www.heywhatsthat.com/api/upintheair.json?view=${HEYWHATSTHATVIEWID}&refraction=0.25&alts=3048,12192
|
||||
fi
|
||||
|
||||
## DISPLAY MESSAGE STATING DUMP1090-MUTABILITY SETUP IS COMPLETE
|
||||
|
|
Ładowanie…
Reference in New Issue