| 1 |
# Configure a codeplug with a text script |
| 2 |
|
| 3 |
A configuration script can be applied to a binary codeplug image with -c option. |
| 4 |
|
| 5 |
The script can contain a complete configuration or any part of it. |
| 6 |
Only parts present in the script are replaced with new data, |
| 7 |
other parts are preserved. For example, to add a few useful text messages |
| 8 |
to any codeplug, the following script can be used: |
| 9 |
|
| 10 |
``` |
| 11 |
$ cat messages.conf |
| 12 |
Message Text |
| 13 |
1 QSY Norcal 95150, pls |
| 14 |
2 QSY Local, pls |
| 15 |
3 QSY California 3106, pls |
| 16 |
4 QSY 441.000 CC1 TS1 TG99 Direct, pls |
| 17 |
5 Be Right Back |
| 18 |
6 My email is [email protected] |
| 19 |
7 73 . . |
| 20 |
``` |
| 21 |
|
| 22 |
The source codeplug is not touched. |
| 23 |
Result is saved to a new file 'device.img'. |
| 24 |
|
| 25 |
``` |
| 26 |
$ dmrconfig -c md380-norcal-brandmeister.rdt messages.conf |
| 27 |
Read codeplug from file 'md380-norcal-brandmeister.rdt'. |
| 28 |
Last Programmed Date: 2016-10-20 17:49:09 |
| 29 |
CPS Software Version: V01.32 |
| 30 |
Read configuration from file 'messages.conf'. |
| 31 |
Total 239 channels, 39 zones, 39 scanlists, 35 contacts, 2 grouplists. |
| 32 |
Write codeplug to file 'device.img'. |
| 33 |
``` |