Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit 661427f

Browse files
authored
Merge pull request #22 from Opendigitalradio/next
Version 3.3.1
2 parents 38ea89d + 46def25 commit 661427f

File tree

2 files changed

+10
-37
lines changed

2 files changed

+10
-37
lines changed

install/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you want to quickly play with the tools before installing anything on your ho
5959
Once the installation is completed, you can test the provided encoders and multiplex configuration files by applying the following steps:
6060
1. Install dablin
6161
```
62-
sudo apt install --yes dablin
62+
sudo apt-get install -y dablin
6363
```
6464
1. Access the supervison web user interface `http://<YOUR_HOST>:8001`, where <YOUR_HOST> is the host where you installed the dab script. The user is `odr` and the password is `odr`
6565
1. Start the 4 encoders and `20-Multiplex`

install/mmbtools-get

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# mmbtools-get - Build, install, uninstall, remove the software stack
4-
# Copyright (C) 20222 Robin ALEXANDER
4+
# Copyright (C) 2022..2024 Robin ALEXANDER
55
#
66
# This program is free software: you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -43,12 +43,6 @@ install_base () {
4343
## Add the odr user to the dialout and audio groups
4444
usermod --append --groups audio,dialout "${odr_user}"
4545

46-
# Add component non-free if necessary
47-
if ! grep --quiet non-free /etc/apt/sources.list; then
48-
sed -e "s/main/main non-free/g" -i /etc/apt/sources.list
49-
apt update
50-
fi
51-
5246
# Install the essential tools and create the tools root directory
5347
apt-get update
5448
apt-get install --yes \
@@ -170,36 +164,14 @@ install_dabmod () {
170164
popd || return
171165
}
172166

173-
install_srccmp () {
174-
# Install mmb-tools: source companion
175-
apt-get install --yes \
176-
libfdk-aac-dev \
177-
libzmq3-dev
178-
179-
if [ ! -d "${DIR_SRCCMP}" ]; then
180-
pushd "${DIR_MMB}" || return
181-
git clone https://github.com/Opendigitalradio/ODR-SourceCompanion.git --branch "${1}"
182-
popd || return
183-
fi
184-
185-
pushd "${DIR_SRCCMP}" || return
186-
./bootstrap
187-
./configure
188-
make
189-
make install
190-
make clean
191-
popd || return
192-
}
193-
194167
install_encmgr () {
195168
# Install mmb-tools: encoder manager
196169
apt-get install --yes \
197170
python3-cherrypy3 \
198171
python3-jinja2 \
199172
python3-pysnmp4 \
200173
python3-serial \
201-
python3-yaml \
202-
supervisor
174+
python3-yaml
203175

204176
if [ ! -d "${DIR_ENCMGR}" ]; then
205177
pushd "${DIR_MMB}" || return
@@ -242,8 +214,13 @@ install_config () {
242214
-i "${DIR_CONFIG}/supervisor/ODR-misc.conf"
243215

244216
## Restart supervisor
245-
supervisorctl reread
246-
supervisorctl reload
217+
supervisorctl status 1>/dev/null
218+
if [ $? -eq 0 ]; then
219+
supervisorctl reread
220+
supervisorctl reload
221+
else
222+
supervisord -c /etc/supervisor/supervisord.conf
223+
fi
247224

248225
echo "Sample configuration files installed"
249226
}
@@ -255,16 +232,12 @@ install () {
255232
install_padenc "${1}"
256233
install_dabmux "${1}"
257234
install_dabmod "${1}"
258-
install_srccmp "${1}"
259235
install_encmgr "${1}"
260236
install_config
261237
ldconfig
262238

263239
chown --recursive ${odr_user}:${odr_user} ${DIR_MMB}
264240

265-
apt-get autoremove --yes
266-
rm -rf /var/lib/apt/lists/*
267-
268241
echo "ODR-mmbTools suite and configuration files installed"
269242
}
270243

0 commit comments

Comments
 (0)