File: uninstall

package info (click to toggle)
berrynet 3.10.2-2
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,572 kB
  • sloc: python: 6,286; javascript: 2,373; xml: 1,094; sh: 738; makefile: 33
file content (34 lines) | stat: -rwxr-xr-x 1,184 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
#
# BerryNet uninstallation script.
#
# Note: We are working on debianize BerryNet and its dependencies.
#       Both installation/uninstallation will become more easier and
#       cleaner.

rm_targets=(
    "/usr/local/berrynet/"
    "/usr/local/bin/berrynet-manager"
    "/etc/systemd/system/agent.service"
    "/etc/systemd/system/broker.service"
    "/etc/systemd/system/camera.service"
    "/etc/systemd/system/classify_movidius_server.service"
    "/etc/systemd/system/dashboard.service"
    "/etc/systemd/system/data_collector.service"
    "/etc/systemd/system/detection_fast_server.service"
    "/etc/systemd/system/detection_server.service"
    "/etc/systemd/system/journal.service"
    "/etc/systemd/system/line.service"
    "/etc/systemd/system/localimg.service"
    "/etc/apt/sources.list.d/berrynet.list"
    "/etc/modules-load.d/bcm2835-v4l2.conf"
)

echo -n "Uninstalling BerryNet..."
for target in ${rm_targets[@]}; do
    sudo rm -rf $target
done
sudo systemctl daemon-reload > /dev/null
echo -e " done\n"
echo "Please share your suggestions with us, and thank you for trying BerryNet:"
echo -e "\n\thttps://groups.google.com/a/dt42.io/d/forum/berrynet"