This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall-packages.sh
executable file
·51 lines (42 loc) · 1.78 KB
/
install-packages.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
#!/bin/bash
set -euxo pipefail
export MAKEFLAGS="-j12"
#echo "+ init..."
#apt update
#apt-get -y install --no-install-recommends wget gpg ca-certificates
#
#echo "+ Add repos and update..."
#if [[ ! -f /etc/apt/trusted.gpg.d/openwebrx-plus.gpg ]]; then
# wget -O - https://luarvique.github.io/ppa/openwebrx-plus.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/openwebrx-plus.gpg
# echo "deb [signed-by=/etc/apt/trusted.gpg.d/openwebrx-plus.gpg] https://luarvique.github.io/ppa/debian ./" > /etc/apt/sources.list.d/openwebrx-plus.list
# wget -O - https://repo.openwebrx.de/debian/key.gpg.txt | gpg --dearmor -o /usr/share/keyrings/openwebrx.gpg
# echo "deb [signed-by=/usr/share/keyrings/openwebrx.gpg] https://repo.openwebrx.de/debian/ bullseye main" > /etc/apt/sources.list.d/openwebrx.list
#fi
#apt update
dpkg -i /deb/libmbe1_1.3.0_*.deb
echo "+ Install codecserver-softmbe..."
dpkg -i /deb/libcodecserver_*.deb
dpkg -i /deb/codecserver-driver-softmbe_0.0.1_*.deb
rm -rf /deb
# add the softmbe library to the codecserver config
linklib=$(dpkg -L codecserver-driver-softmbe | grep libsoftmbe.so)
ln -s $linklib /usr/local/lib/codecserver/
mkdir -p /usr/local/etc/codecserver
#cat >> /etc/codecserver/codecserver.conf << _EOF_
cat >> /usr/local/etc/codecserver/codecserver.conf << _EOF_
# add softmbe
[device:softmbe]
driver=softmbe
_EOF_
#mkdir -p /etc/services.d/codecserver
#cat >> /etc/services.d/codecserver/run << _EOF_
##!/usr/bin/execlineb -P
#/usr/bin/codecserver
#_EOF_
sed -i 's/set -euo pipefail/set -euo pipefail\ncd \/opt\/openwebrx/' /opt/openwebrx/docker/scripts/run.sh
sed -i 's/set -euo pipefail/set -euo pipefail\ncd \/opt\/openwebrx/' /run.sh
#echo "+ Clean..."
#SUDO_FORCE_REMOVE=yes apt-get -y purge --autoremove $BUILD_PACKAGES
#apt-get clean
#rm -rf /var/lib/apt/lists/*
#rm -rf /files