-
Notifications
You must be signed in to change notification settings - Fork 35
/
autogain-remove.sh
29 lines (19 loc) · 702 Bytes
/
autogain-remove.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
#!/bin/bash
rm -f /usr/local/bin/autogain1090
rm -f /etc/default/autogain1090
rm -f /etc/cron.d/autogain1090
systemctl disable autogain1090.timer
systemctl stop autogain1090.timer
rm -f /lib/systemd/system/autogain1090.service
rm -f /lib/systemd/system/autogain1090.timer
# remove old naming
rm -f /usr/local/bin/dump1090-fa-autogain
rm -f /etc/default/dump1090-fa-autogain
rm -f /etc/cron.d/dump1090-fa-autogain
systemctl disable dump1090-fa-autogain.timer
systemctl stop dump1090-fa-autogain.timer
rm -f /lib/systemd/system/dump1090-fa-autogain.service
rm -f /lib/systemd/system/dump1090-fa-autogain.timer
systemctl daemon-reload
echo --------------
echo "autogain.sh: Uninstall complete!"