mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
Update DMRIDUpdate.sh
Registration system transfered to RadioID.net
This commit is contained in:
@@ -53,7 +53,7 @@ DMRIDPATH=/path/to/DMR/ID/file
|
||||
DMRIDFILE=${DMRIDPATH}/DMRIds.dat
|
||||
|
||||
# DMR-MARC.net has discontinued real time access. Now they offer a nightly dump instead.
|
||||
DATABASEURL='https://www.dmr-marc.net/static/users.csv'
|
||||
DATABASEURL='https://radioid.net/static/users.csv'
|
||||
|
||||
#
|
||||
# How many DMR ID files do you want backed up (0 = do not keep backups)
|
||||
@@ -95,7 +95,7 @@ then
|
||||
fi
|
||||
|
||||
# Generate new file
|
||||
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
|
||||
curl -k ${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 ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user