To add all calls from your country (Latvia in this example, starting with 2470), you can execute the following command by accessing your PiStar hotspot via SSH as root:
Code: Select all
rpi-rw && cat /usr/local/etc/DMRIds.dat | grep -e "^2470" | awk -F $'\t' '{print $1 ";2;" $2 ";" $2}' >> /usr/local/etc/TGList_BM.txt && systemctl restart ysf2dmr && sync && rpi-ro
Code: Select all
cat ${DMRIDFILE} | grep -e "^2470" | awk -F $'\t' '{print $1 ";2;" $2 ";" $2}' >> ${TGLISTBM}
Hope it helps!
P.S. Thanks to UW5ELK for helping me to figure it out!