mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update data-mmdvm.sh
This commit is contained in:
parent
71b0913d09
commit
6bc38c9ac6
|
|
@ -13,6 +13,7 @@ APRSHOSTS = "/opt/data-files/APRSHosts.txt"
|
|||
DCSHOSTS = "/opt/data-files/DCS_Hosts.txt"
|
||||
DExtraHOSTS = "/opt/data-files/DExtra_Hosts.txt"
|
||||
DMRIDFILE = "/opt/data-files/DMRIds.dat"
|
||||
DMRIDFILE_ALTERNATE = "/opt/data-files/DMRId.dat"
|
||||
DMRHOSTS = "/opt/data-files/DMR_Hosts.txt"
|
||||
DPlusHOSTS = "/opt/data-files/DPlus_Hosts.txt"
|
||||
P25HOSTS = "/opt/data-files/P25Hosts.txt"
|
||||
|
|
@ -85,6 +86,10 @@ files_to_generate = [
|
|||
for dest_file, source_url in files_to_generate:
|
||||
subprocess.run(['curl', '--fail', '-o', dest_file, '-s', source_url])
|
||||
|
||||
# Additional step for DMRId.dat
|
||||
subprocess.run(['wget', '-O', DMRIDFILE_ALTERNATE, "http://datafiles.ddns.net:8888/DMRIds.dat"])
|
||||
subprocess.run(['sed', '-i', 's/,.*//; s/ */ /g; s/^\(\S\+\s\S\+\s\S\+\).*$/\1/', DMRIDFILE_ALTERNATE])
|
||||
|
||||
# Fix up ircDDBGateway Host Files on v4
|
||||
if os.path.exists("/opt/data-files/ircddbgateway"):
|
||||
ircddbgateway_files = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue