My_Hosts.txt

pull/14/head
Tom Early 6 years ago
parent 2ea76bafa0
commit f8f69dca6c

@ -148,6 +148,17 @@ The first thing you want to do is to create your gwys.txt file. use the 'gw' key
to get into that sub-menu. There are several choices to initialize your gwys.txt
file. Choose one and then you can edit the file to your satisfaction.
If you create a My_Hosts.txt file, it will automatically be appended to the end of
your gwys.txt file. Because it is at the end, definitions in My_Hosts.txt will
override anything defined before. The format for this file is just like gwys.txt:
# comments can begin with a hash mark
# and then: gateway ip_address port
# choose port for linking family (must be supported by the gateway):
# 20001 for DPlus 30001 for DExtra 30051 for DCS.
# Here comes a bogus definition, with the proper format:
Q0XYZ 44.44.44.44 20001
You are now ready to install your QnetGateway system. If you are installing an
MMDVM-based system, follow the instructions in MMDVM.README to get MMDVMHost
up and running.

@ -476,10 +476,16 @@ GatewayMenu () {
awk '$1 ~ /^XRF/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt
awk '$1 ~ /^DCS/ { printf "%s %s 30051\n", $1, $2 }' DCS_Hosts.txt >> gwys.txt
awk '$1 ~ /^REF/ { printf "%s %s 20001\n", $1, $2 }' DPlus_Hosts.txt >> gwys.txt
if [ -e My_Hosts.txt ]; then
cat My_Hosts.txt >> gwys.txt
fi
/bin/rm -f {XLX,DExtra,DPlus,DCS}_Hosts.txt
elif [[ "$ans" == iv* ]]; then
/bin/rm -f gwys.txt
wget http://www.va3uv.com/gwys.txt
if [ -e My_Hosts.txt ]; then
cat My_Hosts.txt >> gwys.txt
fi
elif [[ "$ans" == ir* ]]; then
/bin/rm -f gwys.txt
wget -nv -O gwys.va3uv.txt http://www.va3uv.com/gwys.txt
@ -488,6 +494,9 @@ GatewayMenu () {
awk '$1~/^REF/{print $1, $2, $3}' gwys.va3uv.txt >> gwys.txt
awk '$1~/^XRF/{print $1, $2, $3}' gwys.va3uv.txt >> gwys.txt
awk '$1~/^DCS/{print $1, $2, $3}' gwys.va3uv.txt >> gwys.txt
if [ -e My_Hosts.txt ]; then
cat My_Hosts.txt >> gwys.txt
fi
rm -f gwys.va3uv.txt
fi
elif [[ "$ans" == n* ]]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.