-
Notifications
You must be signed in to change notification settings - Fork 11
/
rm.sh
219 lines (181 loc) · 4.04 KB
/
rm.sh
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
if [ -d "/opt/D-APRS" ]
then
rm -r /opt/D-APRS
#echo "found file"
fi
if [ -d "/opt/kalibrate-rtl" ]
then
rm -r /opt/kalibrate-rtl
#echo "found file"
fi
if [ -d "/opt/YSF2DMRGW" ]
then
rm -r /opt/YSF2DMRGW
#echo "found file"
fi
if [ -d "/opt/YSF2DMR" ]
then
rm -r /opt/YSF2DMR
#echo "found file"
fi
if [ -d "/opt/direwolf" ]
then
rm -r /opt/direwolf
#echo "found file"
fi
if [ -d "/opt/FDMR-Monitor" ]
then
rm -r /opt/FDMR-Monitor
#echo "found file"
fi
if [ -d "/opt/MMDVM_CM" ]
then
rm -r /opt/MMDVM_CM
#echo "found file"
fi
if [ -d "/opt/YSFGateway2" ]
then
rm -r /opt/YSFGateway2
#echo "found file"
fi
if [ -d "/opt/shell-aprs" ]
then
rm -r /opt/shell-aprs
#echo "found file"
fi
if [ -d "/opt/rtl-sdr" ]
then
rm -r /opt/rtl-sdr
#echo "found file"
fi
if [ -d "/opt/direwolf_webstat" ]
then
rm -r /opt/direwolf_webstat
#echo "found file"
fi
if [ -d "/opt/FreeDMR" ]
then
rm -r /opt/FreeDMR
#echo "found file"
fi
if [ -d "/opt/MMDVMHost" ]
then
rm -r /opt/MMDVMHost
#echo "found file"
fi
if [ -d "/opt/pymultimonaprs" ]
then
rm -r /opt/pymultimonaprs
#echo "found file"
fi
if [ -d "/opt/WSYSFDash" ]
then
rm -r /opt/WSYSFDash
#echo "found file"
fi
if [ -d "/opt/DMRGateway" ]
then
rm -r /opt/DMRGateway
#echo "found file"
fi
if [ -d "/opt/MMDVMHost-Websocketboard" ]
then
rm -r /opt/MMDVMHost-Websocketboard
#echo "found file"
fi
if [ -d "/opt/pYSFReflector3" ]
then
rm -r /opt/pYSFReflector3
#echo "found file"
fi
if [ -d "/opt/ionsphere" ]
then
rm -r /opt/ionsphere
#echo "found file"
fi
if [ -d "/opt/multimon-ng" ]
then
rm -r /opt/multimon-ng
#echo "found file"
fi
if [ -d "/opt/noip" ]
then
rm -r /opt/noip
#echo "found file"
fi
if [ -d "/usr/local/bin/noip2" ]
then
rm -r /usr/local/bin/noip2
#echo "found file"
fi
if [ -f "/usr/local/etc/no-ip2.conf" ]
then
rm /usr/local/etc/no-ip2.conf
#echo "found file"
fi
if [ -f "/tmp/no-ip2.conf" ]
then
rm /tmp/no-ip2.conf
#echo "found file"
fi
if [ -f "/usr/local/dvs/dvs" ]
then
rm /opt/buster
apt remove dvswitch-monit -y
apt remove dvswitch-server -y
apt remove -y alsa-topology-conf alsa-ucm-conf analog-bridge bc dvswitch dvswitch-base dvswitch-dashboard dvswitch-menu fontconfig-config fonts-dejavu-core ircddbgateway javascript-common libasound2 libasound2-data libc-ares2 libc-dev-bin libc-devtools libc6-dev libcrypt-dev libdeflate0 libflac8 libfontconfig1 libgd3 libjbig0 libjpeg62-turbo libjs-highlight.js libnode72 libnsl-dev libogg0 libopus0 libsndfile1 libsodium23 libtiff5 libtirpc-dev libvorbis0a libvorbisenc2 libwebp6 libwxbase3.0-0v5 libwxbase3.0-dev libxpm4 lighttpd lighttpd-mod-deflate lighttpd-mod-openssl linux-libc-dev manpages-dev md380-emu mmdvm-bridge monit node-agent-base node-commander node-debug node-lru-cache node-ms node-mute-stream node-read node-semver node-tinycolor node-ws node-yallist nodejs nodejs-doc nxdngateway nxdnparrot p25gateway p25parrot php-cgi php-common php7.4-cgi php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline python3-serial qemu-user-static quantar-bridge spawn-fcgi wx3.0-headers ysfgateway ysfparrot
rm -r /var/log/dvswitch /var/log/mmdvm /var/lib/mmdvm
rm /etc/apt/sources.list.d/dvswitch.list
#echo "found file"
fi
if [ -d "/opt/Analog_Bridge" ]
then
rm -r /opt/Analog_Bridge
#echo "found file"
fi
if [ -d "/opt/MMDVM_Bridge" ]
then
rm -r /opt/MMDVM_Bridge
#echo "found file"
fi
if [ -d "/opt/NXDNGateway" ]
then
rm -r /opt/NXDNGateway
#echo "found file"
fi
if [ -d "/opt/NXDNParrot" ]
then
rm -r /opt/NXDNParrot
#echo "found file"
fi
if [ -d "/opt/P25Gateway" ]
then
rm -r /opt/P25Gateway
#echo "found file"
fi
if [ -d "/opt/P25Parrot" ]
then
rm -r /opt/P25Parrot
#echo "found file"
fi
if [ -d "/opt/Quantar_Bridge" ]
then
rm -r /opt/Quantar_Bridge
#echo "found file"
fi
if [ -d "/opt/Web_Proxy" ]
then
rm -r /opt/Web_Proxy
#echo "found file"
fi
if [ -d "/opt/YSFGateway" ]
then
rm -r /opt/YSFGateway
#echo "found file"
fi
if [ -d "/opt/YSFParrot" ]
then
rm -r /opt/YSFParrot
#echo "found file"
fi
##############