diff --git a/DMRIDUpdateBM.sh b/DMRIDUpdateBM.sh index bc40817..9007e41 100644 --- a/DMRIDUpdateBM.sh +++ b/DMRIDUpdateBM.sh @@ -91,7 +91,13 @@ then fi # Generate new file -curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null > ${DMRIDFILE} +wget http://registry.dstar.su/dmr/DMRIds.php -O DMRIds-temp1.dat +cat DMRIds-temp1.dat | sed -e 's/ /\t\t/g' > DMRIds-temp2.dat +cat DMRIds-temp2.dat | sed -e 's/\t/ /g' > DMRIds-temp3.dat +cat DMRIds-temp3.dat | sed -e 's/ / /g' > DMRIds.dat +rm -f DMRIds-temp1.dat +rm -f DMRIds-temp2.dat +rm -f DMRIds-temp3.dat # Restart MMDVMHost eval ${RESTARTCOMMAND}