mirror of https://github.com/g4klx/MMDVMHost
Merge pull request #282 from s-s-s/master
Small code optimization by CT2JAY
This commit is contained in:
commit
5d98d9dde6
|
|
@ -6,6 +6,7 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016 by Tony Corbett G0WFV
|
# Copyright (C) 2016 by Tony Corbett G0WFV
|
||||||
# edit by R2AJV
|
# edit by R2AJV
|
||||||
|
# edit by CT2JAY
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -91,13 +92,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate new file
|
# Generate new file
|
||||||
wget http://registry.dstar.su/dmr/DMRIds.php -O DMRIds-temp1.dat
|
curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null | sed -e 's/[[:space:]]\+/ /g' > ${DMRIDFILE}
|
||||||
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
|
# Restart MMDVMHost
|
||||||
eval ${RESTARTCOMMAND}
|
eval ${RESTARTCOMMAND}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue