-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvar00.txt
124 lines (101 loc) · 2.16 KB
/
var00.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#!/bin/bash
DVS=/usr/local/dvs/
AB=/opt/userUSER_NO/
MB=/opt/userUSER_NO/
DATA=/var/lib/dvswitch/dvs/
adv=${DATA}adv/
lan=${DATA}lan/
tgdb=${DATA}tgdb/
tgdb_user=${DATA}tgdb/userUSER_NO/
dir_host=/var/lib/mmdvm/
DVSWITCH=/opt/userUSER_NO/dvswitch.sh
MACRO="${DVSWITCH} macro"
MESSAGE="${DVSWITCH} message"
TUNE="${DVSWITCH} tune"
MODESET="${DVSWITCH} mode"
source /var/lib/dvswitch/dvs/lan/english.txt
#VARIABLES
startup_lan=1
first_time_instl=1
# ${DVS}init_config.sh
call_sign=
dmr_id=
rpt_id=
rpt_id_2=
rpt_id_3=
rpt_id_now=
module=S
nxdn_id=
usrp_port=
default_dmr_server=FreeDMR
bm_name=Brandmeister
bm_master=
bm_address=3021.master.brandmeister.network
bm_password=passw0rd
bm_port=62031
dmrplus_name=DMRPlus
dmrplus_address=
dmrplus_password=
dmrplus_port=
tgif_name=TGIF
tgif_address=tgif.network
tgif_password=passw0rd
tgif_port=62031
other1_name=FreeDMR
other1_address=freedmr-hp.ddns.net
other1_password=passw0rd
other1_port=62031
other2_name=DMR_Central
other2_address=dmr.pa7lim.nl
other2_password=passw0rd
other2_port=55555
# AMBE
ambe_server=192.168.0.100
ambe_rxport=2460
ambe_baud=460800
ambe_option=2
# ${adv}dvsm.sh
txgain_dmr=0.25
txgain_dstar=2.00
txgain_nxdn=0.35
txgain_p25=0.35
txgain_ysf=0.35
txgain_asl=0.35
txgain_stfu=0.35
txgain_intercom=0.35
usrpGain=4.00
txgain_dmr_default=0.35
usrpGain_default=1.10
# MMDVM_Bridge Info
rx_freq=433500000
tx_freq=433500000
pwr=0
lat=0.0
lon=0.0
hgt=0
lctn=DVSMU
desc=dvsMU
url=
# update_var $1 $2 OR update_var $1 "$2" if $2 has space(s)
function update_var() {
if [[ "$2" =~ " " ]]; then
sudo sed -i -e "/^$1=/ c $1=\"$2\"" "${DATA}varUSER_NO.txt"
else
sudo sed -i -e "/^$1=/ c $1=$2" "${DATA}varUSER_NO.txt"
fi
}
# add_var_line $1 $2 (before adding, check if there is $1)
function add_var_line() {
if [[ -z `sudo grep "^$1=" ${DATA}varUSER_NO.txt` ]]; then
echo "$1=$2" | sudo tee -a ${DATA}varUSER_NO.txt
fi
}
# update_ini $1=file, $2=section, $3=tag, $4=value
update_ini="sudo ${MB}dvswitch.sh updateINIFileValue"
# When updating, the stanzas will be appended to var.txt, if not exist.
new_var=""
# Values for stanzas. "na" for N/A
new_val=()
# ETC
cpu_temp=
talkerAlias=