Update emq-TE1x.sh

This commit is contained in:
Esteban Mackay Q 2022-09-28 12:07:40 -05:00 committed by GitHub
parent ada13fe004
commit e894d91535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1399,7 +1399,7 @@ Password=passw@rd
#Options=PASS=abc123
#Options=TS2=714;DIAL=0;VOICE=0;LANG=es_ES;SINGLE=0;TIMER=10;
TGListFile=TGList-DMR.txt
TGListFile=/opt/YSF2DMRGW/TGList-DMR.txt
Debug=0
[DMR Id Lookup]
@ -1412,7 +1412,7 @@ DropUnknown=0
DisplayLevel=1
FileLevel=1
FilePath=/var/log/ysf2dmr/
FileRoot=YSF2DMR
FileRoot=YSF2DMR2
[aprs.fi]
Enable=0
@ -2145,6 +2145,8 @@ fi
# Generate new file
sh /opt/XLXHostsupdate.sh
wget -O /opt/MMDVMHost/NXDN.csv https://www.radioid.net/static/nxdn.csv
wget -O /opt/YSF2DMRGW/TGList-DMR.txt http://freedmr-hp.ddns.net/downloads/TGList_BM.txt
sh /opt/XLXHostsupdate.sh
curl ${DATABASEURL} 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s\t%s\t%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > ${DMRIDPATH}/DMRIds.tmp
NUMOFLINES=$(wc -l ${DMRIDPATH}/DMRIds.tmp | awk '{print $1}')
if [ $NUMOFLINES -gt 1 ]