#!/bin/bash # shellcheck shell=bash disable=SC2015,SC2162 # # Registration and query utility for aussieadsb, # Meant for those who want to feed AussieADSB with Ultrafeeder # # AussieADSB is an Australian aggregator focused on feeders in Australia/Oceania. # If you are in this region and are interested in feeding to them, please see: # http://aussieadsb.com/ # # You can run this script from any modern Debian Linux machine with this command: # bash <(wget -qO - https://raw.githubusercontent.com/sdr-enthusiasts/docker-adsb-ultrafeeder/main/aussieadsb.sh) # #--------------------------------------------------------------------------------------------- # Copyright (C) 2024 Ramon F. Kolb (kx1t) and contributors # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with this program. # If not, see . #--------------------------------------------------------------------------------------------- # AAClientVersion="1.1.0-ultrafeeder" argv="${1,,}" if [[ "${argv:0:1}" != "-" ]]; then argv="-$argv"; fi while [[ "$argv" == "-" ]]; do echo "AussieADSB registration utility" echo "Visit http://aussieadsb.com for info" echo echo "Select an option:" echo "(r)egister -- register a new receiver" echo "(d)e-register -- deregister a receiver" echo "(u)pdateinfo -- update your registration info" echo "(s)tatus -- show the feeding status" read -n 1 argv echo argv="${argv,,}" case "$argv" in r) argv="-register" ;; d) argv="-deregister" ;; u) argv="-updateinfo" ;; s) argv="-status" ;; *) echo "invalid selection, try again" ;; esac done if [[ "$argv" == "-help" ]]; then echo "Usage: $0