1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-10-16 13:50:46 +00:00

Update aussieadsb.sh

This commit is contained in:
kx1t 2024-06-16 07:26:35 -04:00 committed by GitHub
parent 3717585203
commit 105daed6a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,7 @@ fi
AUSSIEADSB_KEY="${AUSSIEADSB_KEY:-$2}"
if ! which jq >/dev/null 2>&1 || ! which netcat || ! which ifconfig; then
if ! which jq >/dev/null 2>&1 || ! which netcat >/dev/null 2>&1 || ! which ifconfig >/dev/null 2>&1; then
echo "For registration to work, we need to do a one-time installation of JQ, NetCat, and ifconfig to your system"
echo "Please be patient..."
@ -90,6 +90,9 @@ case "$argv" in
echo "Error - your station is already registered. Try \"$0 -status\""
exit 1
fi
echo ""
echo "AussieADSB Registration"
echo ""
echo "Which suburb is this receiver located in?"
echo "This will be used by the admins to set the receiver name on the site"
read suburb
@ -149,6 +152,10 @@ case "$argv" in
;;
"-deregister")
echo ""
echo "AussieADSB De-registration"
echo ""
while [[ -z "$AUSSIEADSB_KEY" ]]; do
read -rp "Please enter your AussieADSB Registration Key: " AUSSIEADSB_KEY
done
@ -185,6 +192,10 @@ case "$argv" in
;;
"-status")
echo ""
echo "AussieADSB Feeder Status"
echo ""
while [[ -z "$AUSSIEADSB_KEY" ]]; do
read -rp "Please enter your AussieADSB Registration Key: " AUSSIEADSB_KEY
done
@ -206,11 +217,15 @@ case "$argv" in
echo "Registered Receiver Name: $rcvr_name"
echo "Connection status: $connected"
echo "Public IP address: $rcvr_ip"
echo
echo ""
exit 0
;;
"-updateinfo")
echo ""
echo "AussieADSB Registration Update"
echo ""
while [[ -z "$AUSSIEADSB_KEY" ]]; do
read -rp "Please enter your AussieADSB Registration Key: " AUSSIEADSB_KEY
done
@ -263,5 +278,6 @@ case "$argv" in
*)
echo "Unknown option \"$1\". Please check and try again"
exit 1
;;
esac