From f8f69dca6cb550f88724ce0f11b0364982d219f1 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 8 May 2020 14:55:33 -0700 Subject: [PATCH] My_Hosts.txt --- CONFIG+INSTALL | 11 +++++++++++ qnadmin | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/CONFIG+INSTALL b/CONFIG+INSTALL index aaa0793..1dbd389 100644 --- a/CONFIG+INSTALL +++ b/CONFIG+INSTALL @@ -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. diff --git a/qnadmin b/qnadmin index 5f17450..313712c 100755 --- a/qnadmin +++ b/qnadmin @@ -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