kopia lustrzana https://github.com/jprochazka/adsb-receiver
rodzic
81bc301064
commit
1fcd836bb9
|
@ -98,28 +98,13 @@ if [[ ! $ADDTERRAINRINGS =~ ^[Nn]$ ]]; then
|
|||
sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=${HEYWHATSTHATVIEWID}&refraction=0.25&alts=$HEYWHATSTHATRINGONE,$HEYWHATSTHATRINGTWO"
|
||||
fi
|
||||
|
||||
# Pair PiAware with the users account.
|
||||
# Restart dump1090-mutability.
|
||||
|
||||
echo -e "\033[33m"
|
||||
echo "Configure PiAware with your FlightAware account."
|
||||
echo "To do so enter the login name and password for your FlightAware account."
|
||||
echo "This information will only be used by PiAware to associate it to your account."
|
||||
echo -e "\033[37m"
|
||||
read -p "FlightAware Login: " PIAWAREUSER
|
||||
|
||||
# Restart both dump1090-mutability and PiAware.
|
||||
|
||||
sudo piaware-config -user $PIAWAREUSER -password
|
||||
echo -e "\033[33m"
|
||||
echo "Restarting dump1090-mutability..."
|
||||
echo -e "\033[37m"
|
||||
sudo /etc/init.d/dump1090-mutability restart
|
||||
|
||||
echo -e "\033[33m"
|
||||
echo "Restarting PiAware..."
|
||||
echo -e "\033[37m"
|
||||
sudo /etc/init.d/piaware restart
|
||||
|
||||
# Remove the "image" file now that setup has been ran.
|
||||
|
||||
rm -f image
|
|
@ -47,8 +47,8 @@ source $BASHDIR/functions.sh
|
|||
|
||||
if [ -f $BASEDIR/image ]; then
|
||||
# Execute image setup script.
|
||||
chmod +x $BASHDIR/image_setup.sh
|
||||
$BASHDIR/image_setup.sh
|
||||
chmod +x $BASHDIR/image.sh
|
||||
$BASHDIR/image.sh
|
||||
|
||||
# Exit scripts once the the image setup script has completed.
|
||||
echo -e "\033[32m"
|
||||
|
|
Ładowanie…
Reference in New Issue