You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QnetGateway/get_reflectors.sh

26 lines
621 B

#/bin/bash
# Get the big list from Ramesh (VA3UV) and extract the DStar and XReflectors only.
# Put everything on port 20001 so no ports have to be opened!
#
# 73
#
# Tom, ac2ie@arrl.net
if [ -e gwys.txt ]; then
mv -f gwys.txt gwys.txt.orig
fi
rm -f gwys.va2uv.txt
wget -nv -O gwys.va3uv.txt http://www.va3uv.com/gwys.txt
if [ -e gwys.va3uv.txt ]; then
awk '$1~/^REF|XRF/&&$2~/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/{printf "%s\t%s\t20001\n", $1, $2}' gwys.va3uv.txt > gwys.txt
else
echo "Could not get gateways list from www.va3uv.com!"
if [ -e gwys.txt.orig ]; then
mv -f gwys.txt.orig gwys.txt
fi
fi

Powered by TurnKey Linux.