-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-target.sh
46 lines (44 loc) · 1.36 KB
/
install-target.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
#!/bin/bash
############################################################
# -*- coding: utf-8 -*-
#
# o-o o--o o o o-o
# | \ | | | | |
# | O O--o | | o-o
# | / | | | | |
# o-o o--o o-o o--o
#
#
# o-o o--o o o
# | | | | |
# | O--o | |
# | | | |
# o--o o o-o
#
# python-based service for victron cerbo > v3.00
#
# (c) 2024 by mworion
# Licence MIT
#
###########################################################
echo "o-o o--o o o o-o "
echo "| \ | | | | | "
echo "| O O--o | | o-o "
echo "| / | | | | | "
echo "o-o o--o o-o o--o "
echo " "
echo " "
echo " o-o o--o o o "
echo " | | | | | "
echo " | O--o | | "
echo " | | | | "
echo " o--o o o-o "
echo " "
echo "Download latest dbus-cpu"
curl -s https://api.github.com/repos/mworion/dbus-cpu/releases/latest | grep "browser_download_url.*gz" | cut -d : -f 2,3 | tr -d \" | wget -qi -
tar -xvzf dbus-cpu.tar.gz
rm -rf /data/etc/dbus-cpu
mv ./dbus-cpu /data/etc
rm dbus-cpu.tar.gz
bash /data/etc/dbus-cpu/scripts/install.sh
echo "Download and copy dbus-cpu done"